Raster formats support
Is it planned to support jpg / png?
Not really.
- Rastering a SVG on the fly is a very expensive operation, and images should be served very-very fast.
- The main purpose of this project is for people to use the SVG response within their HTML (
img,background-image) pages. Downloading, saving, or any other cases IMHO are not very popular.
Would be interested in other people's opinions and suggestions, though.
Fair enough, but why use the .jpg extension. It's just plain confusing
@ndastur I can see that and yea I agree. What do you think makes sense? We can add more extensions/routes here: https://github.com/Bekt/invatar/blob/master/invatar/app.py#L22
I'd have thought just route to .svg as it's an svg file ??
Also jpg output would be amazing. Maybe this SO post would help implement it? https://stackoverflow.com/questions/2932408/server-side-svg-to-png-or-some-other-image-format-in-python