Closed mitogh closed 2 years ago
Hey @mitogh thanks for opening this. I do agree this might be a bug in the current core implementation. I don't think this is really a performance plugin issue (although I see how it is performance related since it is WebP related)... would you be willing to recreate this ticket on the WordPress core bug tracker (https://core.trac.wordpress.org/) instead?
Before that though, can you verify that the server you are testing this on supports WebP? You can check under Site Health -> Information -> Media Handling. Without that support, WebP uploads might work, but not much else (for example sub size image creation).
WebP is supported on my installation due WebP image sizes are being created normally when using this plugin. I've updated the ticket with some more detailed information about this.
Looks like the problem on this one is due to the rotate function only support jpeg
:
I'm opening a core ticket as a follow-up from this ticket, let me know if you think is better to close this one instead as the actual fix needs to happen in core. @adamsilverstein
Adding the Core ticket as a reference:
Thank you @mitogh - closing this issue in favor of the core ticket.
Bug Description
When a WebP image is uploaded with the rotated exif this exif is ignored and the image is uploaded as it is instead of rotating the image, as happens when a JPEG image is uploaded.
Steps to reproduce
Replicate the steps with the JPEG version to compare, when a JPEG is uploaded a
rotated
version is created and uploaded in the right orientation.Screenshots
JPEG version
WebP version
Additional Context
Original JPEG image: https://www.flickr.com/photos/brevity/6221434141/in/photostream/
Due the limitation with GH WebP version can't be uploaded here but using the original image and Imagemagick you can create a WebP version using the
convert
command to replicate the problem.Media handling info