Copied to clipboard

Flag this post as spam?

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


  • Eric Anatas 10 posts 30 karma points
    Dec 04, 2010 @ 22:53
    Eric Anatas
    0

    Restricting image sizes

    I want to associated a thumbnail with one of my document types. Right now I just have a property of type "Media Picker" but that does not restrict a user from picking media other then an image. I'd also like to, if possible, force the user into picking or uploaded an image with specific dimensions to be used as a thumbnail. How can I do this?

     

    Eric

  • Rich Green 2246 posts 4008 karma points
    Dec 04, 2010 @ 23:02
    Rich Green
    1

    Hi Eric,

    I'd suggest you take a look at the fantastic ImageGen http://our.umbraco.org/projects/website-utilities/imagegen this dynamically generates any size image you need from the original without the user doing anything.

    Rich

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Dec 05, 2010 @ 20:34
    Jan Skovgaard
    0

    Hi Eric

    I can also recommend you to have a look at the wonderfull imagegen handler. It really rocks.

    You could maybe also look into specifying different sizes of your image if you use the upload datatype - if you go to the developer section and choose data types ou can specify the dimensions of the different image sizes that you need.

    /Jan

  • Chris Clarke 22 posts 43 karma points
    Dec 08, 2010 @ 03:59
    Chris Clarke
    0

    Hi Jan,

    I've a manager who would like to restrict the size of the images her page editor users can upload.

    We'd like users to specify the images as thumbnail, medium or large when they're uploading them into Umbraco.
    The upload would be rejected if the image exceed the maximum size for the specified image type.

    So I was very interested to read your remark
                    'choose data types you can specify the dimensions of the different image sizes that you need'

    I have been looking for more info without luck - can you point me at any documentation or examples ?

    Thanks

    Chris C.

  • Eric Anatas 10 posts 30 karma points
    Dec 08, 2010 @ 21:24
    Eric Anatas
    0

    >if you go to the developer section and choose data types ou can specify the dimensions of the different image sizes that you need.

    Jan, I can't find this option either.

  • Kim Andersen 1447 posts 2196 karma points MVP
    Dec 08, 2010 @ 23:27
    Kim Andersen
    1

    I think what Jan is referring to is the possibility of creating different thumbnail sizes of a single image, automatically when an image is uploaded into Umbraco. The different sizes can be determined from the developer section under Data types. Then you need to select the "Upload" data type. You can then choose which sizes shall be created when an image is uploaded seperated with semicolon. If you e.g. want to create three different thumbnails, you can specify it like this: 80;200;400

    I hope the above description makes sense :)

    /Kim A

  • Kim Andersen 1447 posts 2196 karma points MVP
    Dec 08, 2010 @ 23:34
    Kim Andersen
    0

    Just a quick comment from me again. The option about the upload data type creating thumbnails, is probably best explained by Douglas Robar in his presentation from the Umbraco UK Festival. You can watch the video here. It's a great video, but the part about the thumbnails starts after about 13 minutes.

    /Kim A

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Dec 09, 2010 @ 19:51
    Jan Skovgaard
    0

    Yes, I can see I should have been more clear about that in my reply. But it's like Kim is saying on the upload datatype you can add the predefined width's.

    /Jan

Please Sign in or register to post replies

Write your reply to:

Draft