Closed Bug 1209476 Opened 9 years ago Closed 9 years ago

[Music][NGA] Thumbnails are too large

Categories

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

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: wilsonpage, Assigned: squib)

References

Details

Attachments

(1 file)

Currently thumbnails can be as large as 600x600. This is far too large for Gecko to render and maintain <gaia-fast-list> scrolling performance.

We should have two version of the default album artwork 'large' and 'thumbnail' and only load the large when needed.
Are you sure? I wrote the thumbnail generator, and it caps the size at 300x300px.
(In reply to Jim Porter (:squib) from comment #1)
> Are you sure? I wrote the thumbnail generator, and it caps the size at
> 300x300px.

Yes, we are resizing thumbnails to 300x300px. However, default album art never gets resized and we do not generate thumbnails for them. We probably need to pre-shrink default album art into 300x300px thumbnails and have them available for when the app requests a thumbnail version of a song with default album art.
Ah, ok. Since this is in the metadata parser (sort of), I'll take this.
Assignee: nobody → squibblyflabbetydoo
Status: NEW → ASSIGNED
Scroll performance dramatically improved after changing the default album artwork to 60x60 thumbnail.
I wonder how much scrolling will improve once we make all the duplicate images use the same blob URLs.
(In reply to Jim Porter (:squib) from comment #5)
> I wonder how much scrolling will improve once we make all the duplicate
> images use the same blob URLs.

I don't think it will impact much. 90% of our time is spent in gfx related stuff.
(In reply to Wilson Page [:wilsonpage] from comment #6)
> (In reply to Jim Porter (:squib) from comment #5)
> > I wonder how much scrolling will improve once we make all the duplicate
> > images use the same blob URLs.
> 
> I don't think it will impact much. 90% of our time is spent in gfx related
> stuff.

Right, but it should help our memory consumption once squib fixes the backend to use the same blob URL for duplicate images which is another area we need to optimize as well as speed.
Attachment #8672064 - Flags: review?(jdarcangelo)
Attachment #8672064 - Flags: review?(jdarcangelo) → review+
Landed: https://github.com/mozilla-b2g/gaia/commit/c3a5bf3af7e61045e1b8757db992ec734a9f3f36
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Flags: in-testsuite-
Resolution: --- → FIXED
These thumbnails are still too large (300x300). We need to be aiming for about 100x100 (ideally smaller) to give us decent scrolling performance on low-end hardware.

Squib, thoughts?
Flags: needinfo?(squibblyflabbetydoo)
(In reply to Wilson Page [:wilsonpage] from comment #10)
> These thumbnails are still too large (300x300). We need to be aiming for
> about 100x100 (ideally smaller) to give us decent scrolling performance on
> low-end hardware.
> 
> Squib, thoughts?

This was mainly to improve performance on the tiles view, I believe. I have already talked to :squib about introducing a 3rd size for smaller thumbnails for the list views.
Reopening this to track getting thumbnails small enough to get good scrolling performance on list views.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
(In reply to Wilson Page [:wilsonpage] from comment #12)
> Reopening this to track getting thumbnails small enough to get good
> scrolling performance on list views.

I'm closing this to instead track the API modifications in Bug 1213853. The purpose of this bug was to simply address the issues with the default album art not having any thumbnails at all. Now that this is fixed, we will require some API changes to support a second thumbnail size specifically for list views.
Status: REOPENED → RESOLVED
Closed: 9 years ago9 years ago
Flags: needinfo?(squibblyflabbetydoo)
Resolution: --- → FIXED
See Also: → 1213853
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: