Copied to clipboard

Flag this post as spam?

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


  • Gary Prothero 14 posts 34 karma points
    Mar 15, 2010 @ 23:07
    Gary Prothero
    0

    text will not valign

    The following link will not show the text in the center of my image:

    /umbraco/ImageGen.ashx?image=/media/circle_green.png&text=A&fontsize=20&fontcolor=white&align=center&valign=bottom

    The valign bottom places the 'A' at the bottom of the image and middle places the 'A' at the top of the image.  I would like it to be placed in the middle both vertically and horizontally.

    Can you help.

    Thanks

    Gary Prothero

  • Douglas Robar 3570 posts 4711 karma points MVP ∞ admin c-trib
    Mar 15, 2010 @ 23:44
    Douglas Robar
    0

    Nice bug catch! I'll put it on the list for fixes.

    In the meantime, I believe the workaround is to omit the &valign= parameter as center/middle is the default setting unless you tell ImageGen otherwise.

    cheers,
    doug.

  • Gary Prothero 14 posts 34 karma points
    Mar 18, 2010 @ 16:18
    Gary Prothero
    0

    doug,

    Removing the valign attribute put the text at the top of the underlying image:

    /umbraco/ImageGen.ashx?image=/media/circle_green.png&text=A&fontsize=20&fontcolor=white&align=center

    Any other suggestions to get the A character in the center of the green.png?

    Gary Prothero

  • Douglas Robar 3570 posts 4711 karma points MVP ∞ admin c-trib
    Mar 18, 2010 @ 18:53
    Douglas Robar
    0

    No, no workaround. Sorry. Please contact me through my website and I'll email you a custom dll that fixes the valign bug to get you going. I'll incorporate the fix into the next release.

    cheers,
    doug.

  • Douglas Robar 3570 posts 4711 karma points MVP ∞ admin c-trib
    Feb 14, 2011 @ 17:11
    Douglas Robar
    0

    I realize this is an old bug report but wanted to mention that ImageGen 2.5 (now released) resolves the valign bug.

    cheers,
    doug.

Please Sign in or register to post replies

Write your reply to:

Draft