I know how to fetch crops from the image cropper datatype, but I dont know, how to get it working for the images in the media section. Do you have an example?
Have you changed the property editor on the Image document type to use the image cropper? I can't remember if this is done out of the box with the later releases of Umbraco 7.2.x - Perhaps one still needs to do this manually...But can't honestly not remember what the consequences of changing it might be. So be careful if you need to change it!
But if that is already in place you should be able to use the media examples shown in the documentation
Use Image Cropper when looping trough images in folder
Hi, is it possible to use the image cropper, when making a gallery?
I would like to loop trough a folder in the media section and create thumbnails, to use with fancybox, in a gallery.
Any questions, just ask! :-)
Thank you!
Daniel
Hi Daniel
That should indeed be possible. You'll just need to define a thumbnail crop and then use that crop when rendering the thumbnails view.
You can see how to fetch crops in the documentation here https://our.umbraco.org/documentation/Using-Umbraco/Backoffice-Overview/Property-Editors/Built-in-Property-Editors-v7/Image-Cropper
Does this make sense?
/Jan
Hi Jan
Thank you.
I know how to fetch crops from the image cropper datatype, but I dont know, how to get it working for the images in the media section. Do you have an example?
Thank you for the quick response!
Daniel
Hi Daniel
Have you changed the property editor on the Image document type to use the image cropper? I can't remember if this is done out of the box with the later releases of Umbraco 7.2.x - Perhaps one still needs to do this manually...But can't honestly not remember what the consequences of changing it might be. So be careful if you need to change it!
But if that is already in place you should be able to use the media examples shown in the documentation
I guess you use the "media picker" to reference one or more images on a textpage?
/Jan
Thank you, I'll give it a go!
I will make a backup, just in case! Thanks for the warning ;-)
Daniel
Hello,
You could have a look at the Hybrid Framework. It's an example website that also has a gallery.
Jeroen
Thank you Jan! That did the trick and the switch from Upload to Image Cropper went smoothly.
I have another question:
I want to access my members avatar/picture, also an Image Cropper, but it does not work. Do you have a surgestion?
Thank you again. You are a champ!
Daniel
Just realised that it fetches the images for the gallery allright, but not the crop...
Here is my code:
Can you spot the error?
Thank you again, for your help!
Hi Daniel
Have you re-saved the images to make sure that the cropped versions does in fact exist?
/Jan
Always the simple solution!
Thank you! :-D
Hi Daniel
Happy that I was able to point you in the right direction - Have fun coding! :)
/Jan
is working on a reply...