Copied to clipboard

Flag this post as spam?

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


  • Fredrik Esseen 608 posts 904 karma points
    Sep 07, 2009 @ 19:32
    Fredrik Esseen
    0

    Use image Cropper as an alternative?

    What if my client doesnt crop the image? If a choose to show the cropped image in my template but my client never cropped? Can I somehow pcik the full image if the image isnt cropped?

  • Thomas Höhler 1237 posts 1709 karma points MVP
    Sep 07, 2009 @ 23:18
    Thomas Höhler
    1

    Image Cropper gives a complete xml back. I don't know if this xml is not generated if the crops aren't made, but first you can check via xslt if the wanted crop is in the xml. To check if the file exists you can use a simple System.IO.File.Exists check (see here how to use c# in xslt). Fallback can then be the original file.

    hth,
    Thomas

  • bob baty-barr 1180 posts 1294 karma points MVP
    Sep 08, 2009 @ 03:20
    bob baty-barr
    0

    or you can use a macro to check for a value and default to somethign else if there is no value...

    meaning put all your image render logic in the macro vs. in the template.

Please Sign in or register to post replies

Write your reply to:

Draft