Skip to content

Commit

Permalink
Add pillow-heif library for HEIF image support
Browse files Browse the repository at this point in the history
  • Loading branch information
zackees committed May 30, 2024
1 parent b14b106 commit c181c3b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,5 @@ send2trash
magic-wormhole
gpt4all
wormhole-tx
pillow-heif
advanced-aicode
3 changes: 3 additions & 0 deletions src/zcmds/cmds/common/img2webp.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
from typing import Optional

from PIL import Image # type: ignore
from pillow_heif import register_heif_opener

register_heif_opener()


@dataclass
Expand Down

0 comments on commit c181c3b

Please sign in to comment.