I'm currently using ImageGen on a project where I need to ensure that png images are kept transparent. But for some reason I can't seem to get it working.
For instance I have this image: <img src="/umbraco/ImageGen.ashx?image=/tilbud/20x41_1521_sp-gradient.png&width=215&height=112&pad=true&transparent=true" />
Transparent=true not working?
Hi
I'm currently using ImageGen on a project where I need to ensure that png images are kept transparent. But for some reason I can't seem to get it working.
For instance I have this image: <img src="/umbraco/ImageGen.ashx?image=/tilbud/20x41_1521_sp-gradient.png&width=215&height=112&pad=true&transparent=true" />
This gives me a black baggrund color?
Using version 2.5.2 on Umbraco 4.7.1.
Cheers,
Jan
I'm seeing this too - would like to know if anyone knows why ...
Is this a limitation (e.g., not able to output PNG)?
I know that PNG images interpreted (by the browser) as JPEG will show up with a black background, which could be part of the explanation ...
/Chriztian
Try using constrain=true instead of pad=true. Won't "center" the image like you get with pad but should remain transparent.
Thanks Ernst - that's kind of a workaround for now, just need to do some manual centering, I guess...
/Chriztian
is working on a reply...