I found an issue with Polish’s WebP implementation. It does not honor an image’s “orientation” meta data when recompressing.
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.
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.
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.