We have SVG files produced by our online T-Shirt Designer Software (which is an SVG drawing tool). These files are correctly sized for print and open in Illustrator and CorelDraw. On the whole they are valid SVG, however some elements contain custom attributes. The SVGs contain images Base-64 encoded. Any text in the SVG has been converted to PenPaths
We need to be able to continuously convert these SVG into 300dpi PNG files preserving transparency.
Batik (https://xmlgraphics.apache.org/batik/tools/rasterizer.html) seems an obvious choice and we have a C# page which builds a .bat file and runs Batick. PROBLEM: Batik crops the image to the viewbox which leaves content outside of this missing.
ImageMagick - PROBLEM: Uses Batik
SVG.NET (https://github.com/vvvv/SVG) - looks like a good approach but fails to load our SVGs with their custom attributes
Web page/service etc that can be hosted in Azure cloud (.NET/PHP/Java) and called with a filename parameter that will:-
- Retrive the SVG from a url
- Rasterise to a PNG without missing any content or altering sizes
- Store the resulting image to an Azure Blob
We are open to a variety of approaches. Building on SVG.Net could be an option.
We will own all copyright to the finished work which will be trade secret.
This software needs to work will all the files from our system. We will need to test the software using our live output before accepting. This is another way of saying that the sample files do not cover every eventuality.
Please review the brief and the sample files (attached) before bidding.
- Your approach to the problem
- You suggested paltform/language
- And experience working with SVG vector graphics.