Page MenuHomePhabricator

Preview thumbnails show images in wrong orientation (rotation)
Closed, ResolvedPublic

Description

When uploading images with correct orientation metadata in EXIF the preview thumbnails are non-rotated (orientated wrong). When the image upload is completed however, the images are shown correctly on the final media page.

This might be confusing: i thought i had images without the correct orientation so i did it manually, but that was not needed :)


Version: unspecified
Severity: minor
OS: Mac OS X 10.8
Platform: Macintosh

Details

Reference
bz41964

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 12:54 AM
bzimport added a project: UploadWizard.
bzimport set Reference to bz41964.
bzimport added a subscriber: Unknown Object (MLST).

I doubt this is reproducible, do you think it can be with the same image you used?

Created attachment 12388
Example image of me by Hay

This is reproducible.

Actually, I remember that brion once fixed this for the 'conventional' wikis.

resources//mediawiki.special/mediawiki.special.upload.js: uses mw.libs.jpegmeta( data, file.fileName ); to retrieve the info and Canvas to rotate the thumbnail if required.

Attached:

Wikimedia-nl-hackathon-november-2012-07.JPG (4,752×3,168 px, 5 MB)

This is supposed to work correctly since T31383, and it works for me. Can't reproduce any problems with the given image. Can you reproduce it still?

Possibly related: T110788 (similar issue that I can't reproduce either), T110802: UploadWizard does not handle mirrored EXIF rotations when displaying thumbnails (but this image uses a simple rotation).

matmarex set Security to None.
matmarex removed a subscriber: wikibugs-l-list.

Presumed fixed, except for the part described in T110802.