Copied to clipboard

Flag this post as spam?

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


  • Kurniawan Kurniawan 202 posts 225 karma points
    Feb 16, 2011 @ 01:58
    Kurniawan Kurniawan
    0

    Get Thumb Image location in frontend from Upload Image Control

    Hi All,

    I am currently using umbraco.linq

    and want to get the image location which I have set up using Upload Image Umbraco control at backend/cms.

    When I upload an image in CMS it gives me this 2 file

    hydrangeas.jpg and hydrangeas_thumb.jpg

    but when I get it from Umbraco.Linq at frontend, I only get hydrangeas.jpg.

     

    How to get the thumb image ? Is there any umbraco library to do this ?

     

    Thanks

  • Anders Rørvik 25 posts 47 karma points
    Feb 18, 2011 @ 13:34
    Anders Rørvik
    0

    There is no umbraco library to this as far as I know.

    However, umbraco will always generate thumbs in the follow format: filename_thumb_size.jpg , so it should be simple to write a small utility function to do this for you.

    This only applies if you are using custom sizes in the upload datatype, if not, you can retrieve the default thumbnail.

    Hope this helps.

     

     

     

Please Sign in or register to post replies

Write your reply to:

Draft