mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
feat: process profile image
This commit is contained in:
parent
797a09f583
commit
e8515e1990
2 changed files with 1 additions and 9 deletions
|
@ -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)
|
Loading…
Add table
Add a link
Reference in a new issue