Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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.
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 ...
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...
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted