You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#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?
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...
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).
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?
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.
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.
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?
<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
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.
@jvillalobos is this copy okay for the tooltip: "Will be the standard in future add-on detail pages." ?
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!)
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.
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
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.
Activity
muffinresearch commentedon Jun 30, 2017
Somewhat related is adding SVG support #1751
eviljeff commentedon Feb 14, 2018
#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?
diox commentedon Feb 14, 2018
Note that IIRC we scale the icons up so a 1024x1024 might be super ugly depending on the source...
diox commentedon Feb 15, 2018
@eviljeff mentioned the same thing in #5255:
I agree. We should start from scratch for anything above 64... Maybe the plan could be:
iconsproperty.The problem is finding out what's available without having to store yet another field on
Addon...eviljeff commentedon Feb 15, 2018
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.
diox commentedon Feb 15, 2018
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.
eviljeff commentedon Jun 29, 2018
@jvillalobos @pwalm what icon sizes do we want? Though I suppose a better question is what icon sizes does frontend want to display?
jvillalobos commentedon Jun 29, 2018
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?
eviljeff commentedon Jun 29, 2018
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.
jvillalobos commentedon Sep 21, 2018
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.
eviljeff commentedon Sep 24, 2018
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)
jvillalobos commentedon Sep 24, 2018
We should generate any thumbnails we use regularly, I think.
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?
1 remaining item
eviljeff commentedon Sep 25, 2018
Re: Firefox needs in the
/api/v3/api:jvillalobos commentedon Sep 25, 2018
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.
eviljeff commentedon Nov 26, 2018
@jvillalobos is this copy okay for the tooltip: "Will be the standard in future add-on detail pages." ?

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!)
jvillalobos commentedon Nov 26, 2018
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.
AlexandraMoga commentedon Dec 3, 2018
Verified fixed on AMO -dev with FF63, Win10x64
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.