Skip to content

Commit

Permalink
feat: process profile image
Browse files Browse the repository at this point in the history
  • Loading branch information
zamitto committed Sep 13, 2024
1 parent 797a09f commit e8515e1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
2 changes: 1 addition & 1 deletion src/main/events/profile/process-profile-image.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const processProfileImage = async (
_event: Electron.IpcMainInvokeEvent,
path: string
) => {
return await PythonInstance.processProfileImage(path);
return PythonInstance.processProfileImage(path);
};

registerEvent("processProfileImage", processProfileImage);
8 changes: 0 additions & 8 deletions torrent-client/profile_image_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,3 @@ def get_parsed_image_data(image_path):
@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)

0 comments on commit e8515e1

Please sign in to comment.