vint21h / django-xicon

Django reusable application to handle modern bunch of site icons
GNU General Public License v3.0
10 stars 0 forks source link

Automatic conversion of SVG to the right formats #2

Open denizdogan opened 4 years ago

denizdogan commented 4 years ago

This looks like a pretty sweet library, but I think one feature that would really make it awesome would be if we could integrate some automatic conversion of an SVG file to the various formats and sizes.

So essentially, I'd like to just define the URL/path to an SVG file and the library would take care of making sure it's converted once (and then cached), copied to the right locations, etc.

vint21h commented 4 years ago

Hi, I thought about that but in many cases, designers create different icons for different sizes, so automatic conversion can ruin all they work. I think it can be implemented in new "templatetags" and the developer must clearly set this type of icons processing by settings that in project settings and provide a base icon, desired icons sizes, and types. And will use corresponding "templatetags".