Polish's WebP compressor does not maintain image rotation

I found an issue with Polish’s WebP implementation. It does not honor an image’s “orientation” meta data when recompressing.

EXAMPLES

  1. The jpg converted to webp by cloudflare’s Polish. The image is sideways as originally taken on the phone. The orientation value of 6 (Rotated 90° CCW) was not taken into consideration when compressing.
    https://abovebeyondgaragedoors.com/media/rte/garage-doors/20171218_124101.jpg

  2. The original jpg compressed by Polish but not converted to webp. The orientation value of 6 (Rotated 90° CCW) is maintained when optimizing/re-rendering.
    https://abovebeyondgaragedoors.com/media/rte/garage-doors/20171218_124101.jpg?abc

Of course a good web designer will export the image re-rendered with proper rotation and no meta data. But clients have access to a CMS and will usually not be so savvy when uploading.

3 Likes

Good one! Interestingly enough, I can’t find this reported earlier, no existing jira…but we have one now, will update here as I see progress!

1 Like