feat: process profile image

This commit is contained in:
Zamitto 2024-09-13 17:22:29 -03:00
parent 797a09f583
commit e8515e1990
2 changed files with 1 additions and 9 deletions

View file

@ -5,7 +5,7 @@ const processProfileImage = async (
_event: Electron.IpcMainInvokeEvent,
path: string
) => {
return await PythonInstance.processProfileImage(path);
return PythonInstance.processProfileImage(path);
};
registerEvent("processProfileImage", processProfileImage);

View file

@ -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)