Skip to content
This repository has been archived by the owner on Jul 17, 2023. It is now read-only.

Commit

Permalink
fix: lack of supported image format on first run
Browse files Browse the repository at this point in the history
  • Loading branch information
toriato committed Dec 1, 2022
1 parent b4e0387 commit ee167ea
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/tagger.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
preset = Preset(script_dir.joinpath('presets'))
interrogators: Dict[str, Interrogator] = {}

# if you do not initialize the Image object
# Image.registered_extensions() returns only PNG
Image.init()


def refresh_interrogators() -> List[str]:
global interrogators
Expand Down

0 comments on commit ee167ea

Please sign in to comment.