Last modified: 2014-11-05 14:55:20 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.
Sounds reasonable. Only questionable part is finding out what the proper name of file format is, but could probably just use extension uppercased
(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?
(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.
I'm happy to create a GCI task if someone can provide a description that I can just copy and paste.
(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? :-)
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?
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!