mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-15 16:33:02 -03:00
feat: process profile image
This commit is contained in:
@@ -5,7 +5,7 @@ const processProfileImage = async (
|
||||
_event: Electron.IpcMainInvokeEvent,
|
||||
path: string
|
||||
) => {
|
||||
return await PythonInstance.processProfileImage(path);
|
||||
return PythonInstance.processProfileImage(path);
|
||||
};
|
||||
|
||||
registerEvent("processProfileImage", processProfileImage);
|
||||
|
||||
@@ -29,11 +29,3 @@ class ProfileImageProcessor:
|
||||
@staticmethod
|
||||
def process_image(image_path):
|
||||
return ProfileImageProcessor.get_parsed_image_data(image_path)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
result = ProfileImageProcessor.get_parsed_image_data("D:\Imagens\807b5c4b02e765bb4930b7c66662ef4b.gif")
|
||||
print(result)
|
||||
|
||||
result = ProfileImageProcessor.get_parsed_image_data("D:/Imagens/20240416_233352~2.png")
|
||||
print(result)
|
||||
Reference in New Issue
Block a user