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