Join GitHub today
Feature request: transparent background #54
@fogleman I use the command line version, but I'm having trouble getting an image with a transparent background. I use a PNG with large areas of transparency, but all of them come out black when passed through
EDIT: Here's an image you could try - https://i.imgur.com/pbVyVje.png
I tried generating an SVG out of it with the command —
The generated image looks like this - http://svgshare.com/i/3sa.svg
@paambaati try this command:
Reading the code in color.go I found out that the input color is intended as one of this:
AA is the alpha channel value, so if you want it to be transparent just set it to 00
Still doesn't work for me.
Then I realised I had an old version...
So I updated...
... but no difference observed. I am getting neater backgrounds (at least they are white now!) but 100% opaque ... despite testing both SVG and PNG output. For example...
... zero transparency in SVG, white visible background. Reference output after
... but anyway still certainly lacks transparency (tried: Illustrator, Firefox, OSX Finder preview, GIMP).
Yes, I was just uploading JPG because Github doesn't support upload of SVG.
Indeed, that command line does now work for me. No idea what changed there. Weird. Perhaps it is the number of polygons - I note you only used 100 and I was using 500 - as the number increases transparency perhaps tends towards opaque? Perhaps if I set a higher opacity like 100% combined with a higher number of polygons it will work better? Let me test that theory...
Nope. Area 51 has eaten my shell. Thanks