mirror of
https://github.com/zulip/zulip.git
synced 2026-06-30 21:11:04 +08:00
Modern browsers respect the EXIF orientation information of images, applying rotation and/or mirroring as specified in those tags. The the `width="..."` and `height="..."` tags are to size the image _after_ applying those orientation transformations. The `.width` and `.height` properties of libvips' images are _before_ any transformations are applied. Since we intend to use these to hint to rendering clients the size that the image should be _rendered at_, change to storing (and providing to clients) the dimensions of the rendered image, not the stored bytes. |
||
|---|---|---|
| .. | ||
| actually-a-bmp.png | ||
| 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 | ||
| orientation.jpg | ||
| png_resized.png | ||
| still_large_img.gif | ||
| text.txt | ||
| tif_resized.png | ||
| truncated.gif | ||
| unsupported.bmp | ||