← Back to team overview

ubuntu-appstore-developers team mailing list archive

Re: Minimizing icon and screenshot transfer size

 

On Thu, 2014-04-24 at 13:42 -0300, Alejandro J. Cura wrote:
> How is that size calculated, and how many possible sizes there are for
> a given device?
> Looking at http://bit.ly/scopes-json I'm hopeful that there are a few
> ("small", "medium" (default), "large"), and that we calculate them
> when changing the device orientation or the output screen, and can
> pass all three of them in the search hints.
> Though I see that they may change on category-layout (they already do
> for vertical-journal), and in that case this is not feasible either.
> 
> The other option I see is adding a call from the scope to the dash to
> fetch the icon sizes for a given json.

If there's only 3 sizes or so like this, then lets just put them all in
the JSON and pass them all to the dash, and then the dash can pick which
one to choose, based on what size it's rendering at. That would at least
have the advantage of the scope not needing to know anything about the
UI, and it's generic enough that other scope authors can do the same
thing. We'll just pass the small/medium/large URLs as separate things,
and the dash will pick on.




References