Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Jul 17, 2009 @ 10:23
    Ismail Mayat
    0

    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

  • Douglas Robar 3570 posts 4711 karma points MVP ∞ admin c-trib
    Jul 17, 2009 @ 12:07
    Douglas Robar
    0

    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.

  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Jul 20, 2009 @ 11:34
    Ismail Mayat
    0

    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

  • Douglas Robar 3570 posts 4711 karma points MVP ∞ admin c-trib
    Jul 30, 2009 @ 02:39
    Douglas Robar
    1

    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.

Please Sign in or register to post replies

Write your reply to:

Draft