[wp-trac] [WordPress Trac] #55057: WebP images are not rotated in the same way JPEG images are rotated.
WordPress Trac
noreply at wordpress.org
Thu Feb 3 01:25:58 UTC 2022
#55057: WebP images are not rotated in the same way JPEG images are rotated.
--------------------------+-----------------------------
Reporter: mitogh | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version: 5.9
Severity: normal | Keywords:
Focuses: performance |
--------------------------+-----------------------------
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 when a
JPEG version is uploaded the rotation happens as it should creating a
`-rotated.jpeg` version of the original image.
**Result when uploading a JPEG version**
[[Image(https://user-
images.githubusercontent.com/3921289/152251451-201251d2-409f-
42d6-a302-a93bfe3aec3c.png)]]
**Result when uploading a WebP version**
[[Image(https://user-images.githubusercontent.com/3921289/152251458
-1f3d98ac-5b40-4728-97a9-a3c05aa7cbb7.png)]]
Steps to replicate the problem:
- Create a WebP version of the original JPEG image (you can use
imagemagick to do this)
- Upload the WebP version of the image and observe the image is not
rotated the same way it happens with the JPEG version.
Original JPEG image used to test this behavior can be found at (and
attached as part of this report):
- https://www.flickr.com/photos/brevity/6221434141/in/photostream/
Related with the performance ticket:
- https://github.com/WordPress/performance/issues/146
**Media handling information from the installation where this is
happening:
**
Active editor WP_Image_Editor_Imagick
ImageMagick version number 1691
ImageMagick version string ImageMagick 6.9.11-60 Q16 x86_64
2021-01-25 https://imagemagick.org
Imagick version 3.7.0
File uploads Enabled
Max size of post data allowed 100M
Max size of an uploaded file 100M
Max effective file size 100 MB
Max number of files allowed 20
Imagick Resource Limits area: 122 MBdisk: 1073741824file: 786432map: 512
MBmemory: 256 MBthread: 1
ImageMagick supported file formats 3FR, 3G2, 3GP, AAI, AI, APNG, ART,
ARW, AVI, AVIF, AVS, BGR, BGRA, BGRO, BIE, BMP, BMP2, BMP3, BRF, CAL,
CALS, CANVAS, CAPTION, CIN, CIP, CLIP, CMYK, CMYKA, CR2, CR3, CRW, CUR,
CUT, DATA, DCM, DCR, DCX, DDS, DFONT, DJVU, DNG, DOT, DPX, DXT1, DXT5,
EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EPT2, EPT3, ERF, EXR, FAX,
FILE, FITS, FRACTAL, FTP, FTS, G3, G4, GIF, GIF87, GRADIENT, GRAY, GRAYA,
GROUP4, GV, H, HALD, HDR, HEIC, HISTOGRAM, HRZ, HTM, HTML, HTTP, HTTPS,
ICB, ICO, ICON, IIQ, INFO, INLINE, IPL, ISOBRL, ISOBRL6, J2C, J2K, JBG,
JBIG, JNG, JNX, JP2, JPC, JPE, JPEG, JPG, JPM, JPS, JPT, JSON, K25, KDC,
LABEL, M2V, M4V, MAC, MAGICK, MAP, MASK, MAT, MATTE, MEF, MIFF, MKV, MNG,
MONO, MOV, MP4, MPC, MPG, MRW, MSL, MSVG, MTV, MVG, NEF, NRW, NULL, ORF,
OTB, OTF, PAL, PALM, PAM, PANGO, PATTERN, PBM, PCD, PCDS, PCL, PCT, PCX,
PDB, PDF, PDFA, PEF, PES, PFA, PFB, PFM, PGM, PGX, PICON, PICT, PIX,
PJPEG, PLASMA, PNG, PNG00, PNG24, PNG32, PNG48, PNG64, PNG8, PNM,
POCKETMOD, PPM, PREVIEW, PS, PS2, PS3, PSB, PSD, PTIF, PWP, RADIAL-
GRADIENT, RAF, RAS, RAW, RGB, RGBA, RGBO, RGF, RLA, RLE, RMF, RW2, SCR,
SCT, SFW, SGI, SHTML, SIX, SIXEL, SPARSE-COLOR, SR2, SRF, STEGANO, SUN,
SVG, SVGZ, TEXT, TGA, THUMBNAIL, TIFF, TIFF64, TILE, TIM, TTC, TTF, TXT,
UBRL, UBRL6, UIL, UYVY, VDA, VICAR, VID, VIDEO, VIFF, VIPS, VST, WBMP,
WEBM, WEBP, WMF, WMV, WMZ, WPG, X, X3F, XBM, XC, XCF, XPM, XPS, XV, XWD,
YCbCr, YCbCrA, YUV
GD version bundled (2.1.0 compatible)
GD supported file formats GIF, JPEG, PNG, WebP, BMP
Ghostscript version 9.53.3
--
Ticket URL: <https://core.trac.wordpress.org/ticket/55057>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list