I have an place where i upload an SVG file using paperclip, and get converted it to PNG with the same dimension. When it gets converted, my final PNG output was having white background, when my uploaded SVG have transparent background.
Tried with paperclip convert_options, but it was not providing proper output, such as the image have some pixels of white all over the borders.
Example, trans << "-fuzz 0% -transparent 'rgb(255,255,255)'"
Finaly got it working with an after_save method which uses inkscape to convert my SVG to PNG and replace the PNG generated by paperclip.
Example, inkscape --export-png=OUTPUT.png INPUT.svg
But this looks like a double work, to use paperclip(IM) and also inkscape. So, is there any other way to get proper PNG using paperclip with transparent background when my uploaded SVG has transparent background.
Thanks in advance,