Last modified: 2014-11-05 14:55:20 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 T58546, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 56546 - Display file format of preview if different format from original file
Display file format of preview if different format from original file
Status: NEW
Product: MediaWiki
Classification: Unclassified
File management (Other open bugs)
1.23.0
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
gci2014
: easy, i18n
Depends on:
Blocks: messages multimedia tiff-handling
  Show dependency treegraph
 
Reported: 2013-11-04 06:56 UTC by Dominic
Modified: 2014-11-05 14:55 UTC (History)
7 users (show)

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


Attachments

Description Dominic 2013-11-04 06:56:54 UTC
Several file formats (notably PDF, DjVu, SVG, and TIFF) show in-browser previews, using the links under the image on its description page, in different file formats (JPG and PNG) than the original file, but the interface does not warn the user of this anywhere. All it says is:

"Size of this preview: 463 × 599 pixels. Other resolutions: [...]"

For these file types, the message should specify, e.g., "These preview images will be rendered in JPG", much as several projects are already doing through site-specific JS (see SVGs on Commons: https://commons.wikimedia.org/wiki/File:Svg_example4.svg "This image rendered as PNG in other widths: 200px, 500px, 1000px, 2000px."). This is also important usability-wise because the preview file formats are typically more user-friendly than the original files. We should be making users aware that when they are looking at a large file in unfamiliar TIFF format that they are able to simply download JPGs from the preview links.
Comment 1 Bawolff (Brian Wolff) 2013-11-04 17:36:18 UTC
Sounds reasonable. Only questionable part is finding out what the proper name of file format is, but could probably just use extension uppercased
Comment 2 MZMcBride 2013-12-07 09:33:17 UTC
(In reply to comment #1)
> Sounds reasonable. Only questionable part is finding out what the proper name
> of file format is, but could probably just use extension uppercased

We can map the thumbnail image type to message keys, right? So if it's an SVG or a PDF, the software could simply detect that the thumbnails are PNGs and then map to "file-thumbnail-resolutions-png" or something?

Thoughts on making this a GCI task?
Comment 3 Bawolff (Brian Wolff) 2013-12-07 13:27:01 UTC
(In reply to comment #2)
> (In reply to comment #1)
> > Sounds reasonable. Only questionable part is finding out what the proper name
> > of file format is, but could probably just use extension uppercased
> 
> We can map the thumbnail image type to message keys, right? So if it's an SVG
> or a PDF, the software could simply detect that the thumbnails are PNGs and
> then map to "file-thumbnail-resolutions-png" or 

Provided it fallsback to current msg if new msg is undefined, that sounds fine. Have to also test it does something sane in tmh, but tmh might override that entire part making it a non-issue.

> 
> Thoughts on making this a GCI task?

Probably would be suitable.
Comment 4 Quim Gil 2013-12-07 20:05:42 UTC
I'm happy to create a GCI task if someone can provide a description that I can just copy and paste.
Comment 5 MZMcBride 2013-12-07 21:01:50 UTC
(In reply to comment #4)
> I'm happy to create a GCI task if someone can provide a description that I
> can just copy and paste.

Dmcdevit? :-)
Comment 6 Andre Klapper 2014-10-26 17:34:51 UTC
So if there was a new code contributor working on this (e.g. in GCI), could somebody please provide a good task description and the expected outcome?
Comment 7 Andre Klapper 2014-11-05 14:55:20 UTC
Could any of you imagine being a mentor for this task in Google Code-in 2014?
See https://lists.wikimedia.org/pipermail/wikitech-l/2014-October/079264.html and https://www.mediawiki.org/wiki/Google_Code-in_2014 for more information.

I'm happy to help getting this task into Google Code-in - just need to know if somebody (plural) would mentor this!

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


Navigation
Links