Comment 1 for bug 921520

Revision history for this message
Michael Nelson (michael.nelson) wrote :

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.