Last modified: 2012-02-24 02:52:19 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 T33486, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 31486 - Android app's 'W' and search icons get upscaled on hdpi devices
Android app's 'W' and search icons get upscaled on hdpi devices
Status: RESOLVED FIXED
Product: Wikipedia App
Classification: Unclassified
Generic (Other open bugs)
1.0.0 (Android)
All All
: Low normal
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks: hidpi
  Show dependency treegraph
 
Reported: 2011-10-07 03:27 UTC by Brion Vibber
Modified: 2012-02-24 02:52 UTC (History)
3 users (show)

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


Attachments
Screenshot showing native-sized icons (above) and hdpi android emulator (Nexus 1, Droid etc equivalent) (101.36 KB, image/png)
2011-10-07 03:27 UTC, Brion Vibber
Details

Description Brion Vibber 2011-10-07 03:27:13 UTC
Created attachment 9178 [details]
Screenshot showing native-sized icons (above) and hdpi android emulator (Nexus 1, Droid etc equivalent)

The 'W' and search icons are .png files at a single resolution which it looks like gets normalized to mdpi (circa 160dpi, the native pixel size on the classic G1 or iPhone <= 3).

On a hdpi phone like the Nexus 1 (circa 240dpi) this means the images get upscaled from their native resolution, and look a little fuzzy.

SVGs would be nicest but the embedded webkit on Android < 3 won't support them. :( Can use a higher-resolution PNG, but not sure offhand best way to select a clean native-sized image.
Comment 1 Brion Vibber 2011-10-08 06:02:48 UTC
This looks like handy relevant magic:

http://www.fiveminutes.eu/targeting-hight-screen-densities-with-css-media-queries/

If we load the images as backgrounds in CSS, we can target the appropriate resolution-images by having stylesheets to switch among paths or such using media queries on the pixel density. Same magic should work for iPhone Retina display for an iOS version as long as we provide appropriate sizes.
Comment 2 Brion Vibber 2011-10-08 06:03:38 UTC
(If we're super excited for ourselves, we could use SVG originals and create the 160, 240, and 320dpi PNGs and CSS files with the mappings from a build script. ;)
Comment 3 Brion Vibber 2011-11-18 23:54:26 UTC
They've been bumped to a higher resolution (meaning they get scaled *down* on lower-res devices) which does look nicer, but they're still sprited which makes them harder to maintain.

Closing this bug out and removing its dep on bug 32070 (spriting issue).

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


Navigation
Links