mirror of https://github.com/zulip/zulip.git
b14a33c659
This is done in as much of a drop-in fashion as possible. Note that libvips does not support animated PNGs[^1], and as such this conversion removes support for them as emoji; however, libvips includes support for webp images, which future commits will take advantage of. This removes the MAX_EMOJI_GIF_SIZE limit, since that existed to work around bugs in Pillow. MAX_EMOJI_GIF_FILE_SIZE_BYTES is fixed to actually be 128KiB (not 128MiB, as it actually was), and is counted _after_ resizing, since the point is to limit the amount of data transfer to clients. [^1]: https://github.com/libvips/libvips/discussions/2000 |
||
---|---|---|
.. | ||
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 | ||
jpg_resized.png | ||
png_resized.png | ||
still_large_img.gif | ||
text.txt | ||
tif_resized.png |