Skip to content

Increase icon size for add-ons #4510

Closed
mozilla/addons-server
#10092

Description

@tofumatt

The icon sizes are way too small and are making retina monitors cry.

Can we make them 1024px x 1024px max? And return a few different sized ones? I'd think we'd want 128px and 256px.

Activity

  1. muffinresearch commented on Jun 30, 2017

    @muffinresearch
    Contributor

    Somewhat related is adding SVG support #1751

  2. eviljeff commented on Feb 14, 2018

    @eviljeff
    Member

    #5255 is connected to this. As mentioned in that issue we do actually generate more than 64px (despite what devhub says) but just don't expose them in the API. Is 1024px still needed?

  3. diox commented on Feb 14, 2018

    @diox
    Member

    Note that IIRC we scale the icons up so a 1024x1024 might be super ugly depending on the source...

  4. diox commented on Feb 15, 2018

    @diox
    Member

    @eviljeff mentioned the same thing in #5255:

    Really the feature is broken - we say 64 is the max in devhub (so that's probably the max size uploaded by a Dev); then resize them anyway. It's quite likely all the icons at 128, 256, 512 are useless therefore -we should probably just delete them.

    I agree. We should start from scratch for anything above 64... Maybe the plan could be:

    • Delete any icons > 64px
    • Start supporting higher sizes in devhub
    • Return what is available in the API, through the new icons property.

    The problem is finding out what's available without having to store yet another field on Addon...

  5. eviljeff commented on Feb 15, 2018

    @eviljeff
    Member

    We could rely on .exists() on the filename (they're consistently named).

    When it comes to the larger sizes (larger than 64, or whatever we decide is the "minimum required size" in the future) I think we should only generate them if the source is equal or greater than that size so we never upscale (e.g. dev uploads a 128px icon, we create 32, 48, 64, 128, but not 256 and 512).

    Aside: 48 seems useless.

  6. diox commented on Feb 15, 2018

    @diox
    Member

    I'd like to avoid calling .exists() on the (network) filesystem when serving an API response though... I guess we'll have to add a field.

    Agreed on the rest. And 48 is definitely useless.

  7. eviljeff commented on Jun 29, 2018

    @eviljeff
    Member

    @jvillalobos @pwalm what icon sizes do we want? Though I suppose a better question is what icon sizes does frontend want to display?

  8. jvillalobos commented on Jun 29, 2018

    @jvillalobos

    We should consider the plans for add-on metadata (#7825). The plan is that AMO would no longer manage add-on icons, and instead we should just use whatever is in the XPI. So, I think we should use the same dimensions that are recommended for XPI icons.

    According to the docs, those are 48 and 96. So, maybe we should use 96 for the main icon and 48 where we need smaller ones?

  9. eviljeff commented on Jun 29, 2018

    @eviljeff
    Member

    fwiw, frontend is displaying the 64 icon right now (and resizing it down to 32 on the shelves). I think we're good with switching to 48 and 96 on devhub, though they'll be some frontend work and it'll be upsizing to 96. Its a #5384 style/sized project again really.

  10. jvillalobos commented on Sep 21, 2018

    @jvillalobos

    After some discussion, we have decided to standardize to 128x128 for the icon. We'll eventually require it for upload (either on the XPI or on AMO, TBD), but we'll still need at least one fallback with those dimensions for existing add-ons that don't have one.

  11. eviljeff commented on Sep 24, 2018

    @eviljeff
    Member

    Should we just have 128x128? (We might need to keep generating 64 and/or 32 for Firefox, in /api/v3/ at least - see #5255)

    Can you link to the companion frontend issue?
    (#11431 was logged a while back so should probably be duped to it)

  12. jvillalobos commented on Sep 24, 2018

    @jvillalobos

    Should we just have 128x128?

    We should generate any thumbnails we use regularly, I think.

    Can you link to the companion frontend issue?

    Not sure what you mean here. I haven't filed any new ones, because I don't know if any frontend work is needed. I don't quite understand the issue you linked to, which seemed urgent... back in February?

  13. 1 remaining item

  14. eviljeff commented on Sep 25, 2018

    @eviljeff
    Member

    Re: Firefox needs in the /api/v3/ api:

    <eviljeff> do you know what icon sizes Firefox expects from the AMO API (ref #5255)? We have some changes in standard sizes planned but if you need some specific sizes we'll be sure to keep them (e.g. 64x64)
    <John-Galt> 64×64 and 48×48
    <freaktechnik> (48 in list view, 64 in details/options)
    <eviljeff> What would happen if we only had 128x128?
    <John-Galt>We'd scale that and use it for both. We should probably use 128 for retina anyway, but I don't think we currently do

  15. jvillalobos commented on Sep 25, 2018

    @jvillalobos

    Well, it's useless devhub collecting and serving 128x128 icons if frontend never actually uses 128x128. It currently always uses 64x64.

    There are plans for a new product (aka listing) page in Q1. Many of the content requirements being introduced in Q4 are meant as the first step in that direction. So, at least in Q4, I don't think there will be any consumers for that particular size.

    The Add-ons Manager will also be refreshed sometime in the future, but I don't know their timeline. Definitely not Q4 either.

  16. self-assigned this
    on Nov 24, 2018
  17. added this to the 2018.11.29 milestone on Nov 26, 2018
  18. eviljeff commented on Nov 26, 2018

    @eviljeff
    Member

    @jvillalobos is this copy okay for the tooltip: "Will be the standard in future add-on detail pages." ?
    screenshot 2018-11-26 18 05 47

    Also, I minimally adjusted the existing explanation text to "PNG and JPG supported. Icons resized to 128x128 pixels if larger." but I'm not sure if that's the desired behaviour any longer - should we still be upsizing and downsizing whatever is submitted to the standard sizes? Right now we don't enforce any restrictions on size (or ratio - the icon doesn't even need to be square!)

  19. jvillalobos commented on Nov 26, 2018

    @jvillalobos

    We should require a 128x128 square for all new icon uploads, and note that in the caption. Existing icons will be resized as needed, but maybe that's not worth calling out.

  20. AlexandraMoga commented on Dec 3, 2018

    @AlexandraMoga

    Verified fixed on AMO -dev with FF63, Win10x64

    • add-on icons are rendered now in three different sizes: 34, 64, 128 (the new addition)
    • icon uploads are restricted to JPG and PNG
    • the icon must be square and its size needs to be equal to or larger than 128px width and height

    image

    image

    There is an issue with previews rendering immediately after the changes are submitted - #5831 opened a while back (now I've updated it a bit to match the current behavior)

    I've also filed #6232 for an issue with the 128px icon preview.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Fields

Priority

None yet

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions