Last modified: 2013-09-11 21:15:11 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T33302, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 31302 - Flipping images should be allowed though a parameter in the [[File:]] tag
Flipping images should be allowed though a parameter in the [[File:]] tag
Status: RESOLVED WONTFIX
Product: MediaWiki
Classification: Unclassified
File management (Other open bugs)
unspecified
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-10-02 01:05 UTC by Huji
Modified: 2013-09-11 21:15 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Huji 2011-10-02 01:05:21 UTC
This issue was originally raised by one of the Persian Wikipedia editors. The rationale is that many RTL wikis who share their file repository with a larger LTR wikis will frequently use images that are oriented appropriately for the LTR layout but not the RTL layout. Exapmles are:

(1) Face photos are usually preferred to be look towards the center of the page. In English Wikipedia, for example, photos used in the infoboxes of articles about people usually use images that look to the left. When such an image is not available, one can flip the images horizontally and use that as an alternative, without needing to edit the image externally and re-uploading them.

(2) When such a face photo is shared by many wikis (e.g. when the photo is in Commons, and both English and Arabic Wikipedia's use it), it is inevitable that one of the wikis will end up with the file with the wrong face direction of subject. Having a flipping parameter can fix this.

(3) Same applies to arrows, checkmarks, etc that are on Commons and are used by both LTR and RTL wikis.

Technically speaking, this feature can be implemented as [[File:image.png|flip=horizontally|...]] and it should be easy to implement because we are already using GD/ImageMagick for thumbnailing which has the capability of flipping images too.

From file-name point of view, just as a thumbnail that is resized from original size is named 80px-image.png, a thumbnail that is flipped from original orientation can be named 80px_h-image.png

At the time being, I can't think of a reason why we shouldn't implement vertical flipping as well, although I can't think of a use case either.
Comment 1 Bryan Tong Minh 2011-10-02 10:53:35 UTC
I implemented basic image editting (cropping and rotation iirc) via thumbnail parameters. That got reverted however, don't remember the exact rationale.
Comment 2 Daniel Friesen 2011-10-02 10:57:27 UTC
I don't like the idea of flipping photographs. A flipped image isn't the same as moving the perspective, you mirror it. Any text in the image will be the the wrong direction for the language it's in (rather the characters will be mirrored so no text will ever be the right way). And you mirror the person's face, any facial features such a mole on the left side of a person's face will now be on the wrong side of their face.
Comment 3 Brion Vibber 2013-09-11 21:15:11 UTC
Closing out per above comments.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links