Last modified: 2013-11-01 17:24:12 UTC
(Jotting down some issues noted while testing, things that aren't directly related to the commits.) Currently the viewer doesn't have any handling for high-DPI/Retina displays -- the image loaded will be sized for 1x density only, and may appear blurry on sharper displays. Simplest way to handle this in near future would be something like: * get the display density with $.devicePixelRatio() -- this will return a number like 1, 1.5, 2, or another number depending on the display density and/or browser zoom level. (This is a polyfill for the window.devicePixelRatio property which adds support for IE; don't forget to include the 'jquery.hidpi' module in your dependencies if using it.) * multiply the target width and height by that ratio and round off to ints; pass that pixel size into the imageinfo request when asking for a thumbnail. * don't forget to use the _non-multiplied_ sizes in width/height attributes on the <img>
Change 93068 had a related patch set uploaded by Brion VIBBER: Bug 55477: MultimediaViewer hi-DPI support https://gerrit.wikimedia.org/r/93068
Change 93068 had a related patch set uploaded by MarkTraceur: Bug 55477: MultimediaViewer hi-DPI support https://gerrit.wikimedia.org/r/93068
Change 93068 merged by jenkins-bot: MultimediaViewer hi-DPI support https://gerrit.wikimedia.org/r/93068