mirror of https://github.com/zulip/zulip.git
1e65cdd072
This additional logic to prevent resizing is certain circumstances (file size, dimensions) is necessary because the pillow gif handling code seems to be rather flaky with regards to handling gif color palletes, causing broken gifs after resizing. The workaround is to only resize when absolutely necessary (e.g. because the file is larger than 128x128 or 128KB). Fixes #10351. |
||
---|---|---|
.. | ||
animated_img.gif | ||
animated_large_img.gif | ||
animated_unequal_img.gif | ||
bomb.png | ||
cmyk.jpg | ||
corrupt.gif | ||
corrupt.png | ||
gif_resized.png | ||
img.bmp | ||
img.gif | ||
img.jpg | ||
img.png | ||
img.svg | ||
img.tif | ||
img_no_exif.jpg | ||
img_orientation_3.jpg | ||
img_orientation_6.jpg | ||
img_orientation_8.jpg | ||
jpg_resized.png | ||
png_resized.png | ||
text.txt | ||
tif_resized.png |