Search code examples
phpimagecodeigniterinkscape

Inkscape leaving grey borders during SVG->PNG conversion


We have a system that compiles SVGs from paths, textPaths, and uploaded images (.png being one supported type).

We then convert the .svg -> .png. This process is leaving a strange grey border around images (and all transparent edges) as outlined in the image below.

Anyone have any idea how to solve this?

enter image description here


Solution

  • Possible lucky guess, but I know that CI has some problems alpha transparency that can cause problems with transparent images. I had similar one with resizing of transparent PNGs.

    Try to set Aplha to zero (I think this was proper solution)