Just thinking about keeping services small, focused and resusable, I
wonder if a separate icons.ubuntu.com would be worthwhile.

It could import the icons from packages, but also enable other agents
(such as devportal) to submit icons for PPA packages or other sources
etc.

Also, regarding returning the nearest size - it could also quite simply
generate the exact size from the nearest (larger) sized icon or SVG.

And regarding SVG's, with sca we currently *never* store an SVG,
generating the raster icons from it during upload - which sounds
wasteful, but it came from the requirement to have (1) separate SVG's
for different sizes (apparently even though it's scaleable, different
detail is included in different sizes), and (2) not being able to find a
safe way to serve or strip SVGs (given that they can contain arbitrary
JS code etc.). But as (1) isn't relevant in this case, and neither is 2
I think (in that, we don't need to serve the SVG necessarily), such a
service could always store the SVG and use it to render an image when an
existing raster image isn't available for the requested size.

Anyway, just food for thought.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/921520

Title:
  Locally stored application icons don't scale well, literally and
  figuratively

To manage notifications about this bug go to:
https://bugs.launchpad.net/software-center-agent/+bug/921520/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to