mozilla-b2g/gaia — pull request #6539 by davidflanagan (2012-11-21 08:18:55+00:00)
Title: Bug 809782 - use less memory while generating gallery thumbnails

This pull request improves the metadata parser for the gallery app in these ways:

1) It avoids decoding the image whenever it can. If the JPEG file includes an embedded preview image, it uses that to generate the thumbnail rather than the full size image.

2) It uses the BlobView abstraction used by the Music app for parsing the jpeg file. This should reduce the number of async FileReader calls it needs to make, so might speed up jpeg parsing.

3) It also moves apps/music/js/blobview.js to shared/js/blobview.js and modifies apps/music/index.html to match.