Not exactly a bug more a request suggestion, is it possible to create using imagegen a transparent png without a background colour. I know you can create it by passing in a background colour that is closest to the background that the image will sit on. My issue is i have a page background that has a gradient so would need to create a macro using imagegen where depending on position in the page a different colour is passed in would just be easier to create transparent png.
The background color is used for anti-aliasing around the edge of text. Without knowing the background color you'd get jagged edges.
But that's for text-only images. If you have a png with alpha-channel or transparency and resize it with ImageGen the transparency is retained in the resized image.
For your situation, could you create the image in Photoshop and then use ImageGen to resize it as needed?
Thanks for the reply, all the images are text only so cannot go down photoshop route. I will have to just use the background colour , your jagged edges explanation makes sense i was'nt sure why the anti aliasing was required but now i know :-}
Image gen transparent png
Doug,
Not exactly a bug more a request suggestion, is it possible to create using imagegen a transparent png without a background colour. I know you can create it by passing in a background colour that is closest to the background that the image will sit on. My issue is i have a page background that has a gradient so would need to create a macro using imagegen where depending on position in the page a different colour is passed in would just be easier to create transparent png.
Regards
Ismail
The background color is used for anti-aliasing around the edge of text. Without knowing the background color you'd get jagged edges.
But that's for text-only images. If you have a png with alpha-channel or transparency and resize it with ImageGen the transparency is retained in the resized image.
For your situation, could you create the image in Photoshop and then use ImageGen to resize it as needed?
cheers,
doug.
Doug,
Thanks for the reply, all the images are text only so cannot go down photoshop route. I will have to just use the background colour , your jagged edges explanation makes sense i was'nt sure why the anti aliasing was required but now i know :-}
Regards
Ismail
Just following up with the solution for Ismail... there is a bug with ?antialias=true that actually sets the antialiasing to false by mistake.
The workaround is to simply omit the ?antialias=true parameter since the default it to antialias anyway.
Sorry for the bug.
cheers,
doug.
is working on a reply...