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
Yeah, not sure what I was thinking when I wrote it. We currently generate a bunch of sizes: 32, 48, 64, 128, 256, 512. I'm not sure if we need all that... Also, changing this without breaking existing clients is going to be annoying.
good thing the v3 is still "experimental" 😆 - we just need addons-frontend to support both a single icon and a size:path dict first. I'll log an issue.
32, 48, 64 appear to be the only sizes that are actually working, at least for the add-ons I'm testing with. Since the legacy API was returning only 32 and 64, I suggest that the v3 API only return those 2 sizes as well, and we can figure out what to do about the other sizes afterwards.
I think we can add a new icons field to the response, and not touch the icon one. We'd eventually drop icon entirely, but that enables us to implement it without waiting for the frontend.
Yeah, agreed on icons - it's accurately named too.
I found from testing yesterday that all the icon sizes were generated when i selected a new icon for an existing listing. I don't know how long that's been true for though.
My guess is that it has been the case for a while, but not applied retroactively to old add-addons... I was testing with adblock-plus, which is quite old. Since for our immediate needs 64 is the biggest we'll need, it's fine.
Yes, and we don't really want to upscale all the existing 64x64 icons to 512.
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.
Activity
diox commentedon Feb 7, 2018
64 pixels should be enough for everyone!
Yeah, not sure what I was thinking when I wrote it. We currently generate a bunch of sizes: 32, 48, 64, 128, 256, 512. I'm not sure if we need all that... Also, changing this without breaking existing clients is going to be annoying.
eviljeff commentedon Feb 8, 2018
good thing the v3 is still "experimental" 😆 - we just need addons-frontend to support both a single icon and a size:path dict first. I'll log an issue.
diox commentedon Feb 15, 2018
32, 48, 64 appear to be the only sizes that are actually working, at least for the add-ons I'm testing with. Since the legacy API was returning only 32 and 64, I suggest that the v3 API only return those 2 sizes as well, and we can figure out what to do about the other sizes afterwards.
diox commentedon Feb 15, 2018
I think we can add a new
iconsfield to the response, and not touch theiconone. We'd eventually dropiconentirely, but that enables us to implement it without waiting for the frontend.So, it would look like this:
eviljeff commentedon Feb 15, 2018
Yeah, agreed on
icons- it's accurately named too.I found from testing yesterday that all the icon sizes were generated when i selected a new icon for an existing listing. I don't know how long that's been true for though.
diox commentedon Feb 15, 2018
My guess is that it has been the case for a while, but not applied retroactively to old add-addons... I was testing with adblock-plus, which is quite old. Since for our immediate needs 64 is the biggest we'll need, it's fine.
eviljeff commentedon Feb 15, 2018
Yes, and we don't really want to upscale all the existing 64x64 icons to 512.
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.
diox commentedon Feb 15, 2018
I agree. Moving this discussion to #4510 :)
AlexandraMoga commentedon Feb 16, 2018
Verifed on AMO dev, with FF58, Win10x64
Checked with the following add-on and the new
iconsproperty is returned; the oldicon_urlproperty is also present: