I’m trying to use pThumb (uses phpthumb) to convert an SVG to PNG, however the image has an outline and background baked into it. I have imagemagick on the server (2019 release), and not using resizer
Here is my call. I’ve tried removing AOE, no change there, I added DPI and gave it a crazy number just to see, no change.
So just to make sure I got your post right,
You are trying to convert an SVG to a PNG.
But it is having the undesired outcome of losing transparency and generating a background (e.g from isolated logo to a logo on a black background)?
If it is that, you may need to add an alpha/transparency option to your string. I had a similar issue when compressing PNG files it would automatically remove the transparency. I don’t have any links to any specific documentation though and this is all based off of memory. So take it for what it’s worth.
In the end as I was trying to debug my SVG, I thought “You know, it’s faster just to export a few PNGs as part of my workflow” … I don’t like it, but it’s where I landed. I tried everything suggested with no real progress. I’m not sure phpthumb is the right tool for this job.