Closed Bug 1029757 Opened 10 years ago Closed 10 years ago

Gallery thumbnails larger than necessary

Categories

(Firefox OS Graveyard :: Gaia::Gallery, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: Mozilla_BEC, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:24.0) Gecko/20140610 Firefox/24.0 PaleMoon/24.6.2 (Nightly/Aurora)
Build ID: 20140610142618

Steps to reproduce:

Enable USB, navigate to .gallery folder.

Thumbnails are jpg and far larger than needed for the thumbnail size of 106x106px.



Actual results:

Thumbnails are image dimension divided by 3.75


Expected results:

Thumbnails should be sized closer to the actual thumbnail viewport size.

On ZTE Open viewport is 106x106px

Thumbnails of images sized 1600x1200px are 426x320px (divided by 3.75)

Thumbnails should be sized so the smallest dimension is 106px to cut down on load time and size of thumbnails in the .gallery cache.
If negative/black space is allowed by UI conventions within the thumbnail border, then the largest dimension of the image should be scaled down to 106px and the smaller to whatever size matches the aspect ratio.

My proposal above (scale the smallest to 106px) is appropriate if the 106x106px frame needs to be filled completely as you can just "fit" the image into the frame (think Windows 7/8 scaling method)
Flags: needinfo?(dflanagan)
The images in the .gallery/ directory are previews, not thumbnails. They are created to be close to the size (in device pixels) of the screen.  The small thumbnails are stored in an indexeddb.

Resolving invalid.
Status: UNCONFIRMED → RESOLVED
Closed: 10 years ago
Flags: needinfo?(dflanagan)
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.