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?
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.
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?
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
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.
is working on a reply...