Skip to content

Commit

Permalink
tif
Browse files Browse the repository at this point in the history
  • Loading branch information
GDjkhp committed Dec 21, 2024
1 parent 9fcebce commit 4734a31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions magick_pillow.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

supported_formats = {
'png', 'webp', 'jpeg', 'jpg', 'gif',
'bmp', 'tiff', 'tif', 'pdf', 'svg',
'bmp', 'tiff', 'pdf', 'svg',
# 'ico', 'avif', 'apng',
}
# Formats that can handle animation
Expand Down Expand Up @@ -200,7 +200,7 @@ def process_images(images: list[Image.Image], format: str) -> Union[io.BytesIO,
img = background
img.save(output, format='JPEG', quality=95)

elif format == 'tiff' or format == 'tif':
elif format == 'tiff':
img.save(output, format='TIFF', compression='lzw')

elif format == 'ico': # bug: windows can't read (corrupted)
Expand Down

0 comments on commit 4734a31

Please sign in to comment.