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
    Nov 02, 2011 @ 14:13
    Ismail Mayat
    0

    AltImage Not working?

    Hello,

    We are using latest imagegen pro with umbraco 4.7 I am having an issue with AltImage attribute I dont think its a bug it may be what the image link is returning. So I have image gen call to image http://lot-images.atgmedia.com/SR/35164/2768977/391.JPG this image on the third party site is missing.  If you hit that link you get some xml back with error message.  In my image gen link I have set alt image to altImage=/images/thumb_tiny.jpg however I still get missing image.

    Am i right in assuming becuase my image link although missing an image is sending back 200 status code image gen thinks there is an image and thus tries to process it?  Is there a way round this issue?

    Regards

     

    Ismail

  • Douglas Robar 3570 posts 4711 karma points MVP ∞ admin c-trib
    Nov 02, 2011 @ 14:23
    Douglas Robar
    0

    Great question, Ismail! I'll have to look to see what will happen in that case. 

    I'll keep you posted.

    cheers,
    doug. 

  • Douglas Robar 3570 posts 4711 karma points MVP ∞ admin c-trib
    Nov 02, 2011 @ 14:28
    Douglas Robar
    0

    I'm getting the url you provided as a 404 return code, not a 200. Can you double-check that to be sure I'm reproducing your issue properly?

    Also, what version of ImageGen are you using, as that will make a difference.

    cheers,
    doug. 

  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Nov 02, 2011 @ 14:47
    Ismail Mayat
    0

    Doug,

    Using imagegen pro version is 2.5.2.17053 my image gen full link looks like

    <img class="thumb-tiny" src="/[email protected](fullImageUrl, item.ClientID, item.EventID, imageUrl)&amp;width=98&amp;height=60&amp;constrain=true&amp;altImage=/images/thumb_tiny.jpg" alt="@item.ImageName"/>

    if you need to see it in action can ping you link via skype or msn.

    Many thanks

     

    Ismail

     

  • Douglas Robar 3570 posts 4711 karma points MVP ∞ admin c-trib
    Nov 02, 2011 @ 15:08
    Douglas Robar
    0

    Yup, it's a bug, and a pesky one. This might take a little while to figure out. 

    I'll keep you posted.

    BTW, you should upgrade to 2.5.7 :)
    AND, you shouldn't need the &amp; since you're using Razor... that was only required for xslt. 

    cheers,
    doug. 

  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Nov 02, 2011 @ 15:19
    Ismail Mayat
    0

    will upgrade and thought &amp; was xhtml syntactically more correct?

    Regards

    Ismail

  • Douglas Robar 3570 posts 4711 karma points MVP ∞ admin c-trib
    Nov 02, 2011 @ 15:22
    Douglas Robar
    0

    Not 'more correct' - the simple & is possibly better (certainly more concise) and is preferred though &amp; will work and is required because of XSLT escaping requirements for the & character.

    cheers,
    doug. 

Please Sign in or register to post replies

Write your reply to:

Draft