Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi all.
I have a macro where i want to show a gallery of cropped images but i cant get to the cropped image. :(
@using idseefeld.de.imagecropper.PropertyEditorValueConverter;@inherits umbraco.MacroEngines.DynamicNodeContext@{ var galleryFolder = Model.MediaById(Parameter.imageFolder); }<div class="gallery"> @foreach (var galleryImage in galleryFolder.Children.Where("NodeTypeAlias == \"Image\"")){ <div> @galleryImage.imageCropper.Find("square").url </div> }</div>
Best regards Rasmus
Hello Rasmus,
maybe this can help you:
http://our.umbraco.org/projects/backoffice-extensions/image-cropper/image-cropper/32728-Get-Crops-with-Razor-syntax
Sören
Thanks Sören. That worked :)
Hi,
I would like to know if it is possible to have an image and crop in way that the width is 100% because I want the image as a cover photo on each page.Therefore, I would like to set the crop with width 100% and height 563px for example.
Is is possible pls?
Thank you in advance.
Regards
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
Unable to get the cropped images from media folder - Razor, Umbraco 6.1.6
Hi all.
I have a macro where i want to show a gallery of cropped images but i cant get to the cropped image. :(
Best regards Rasmus
Hello Rasmus,
maybe this can help you:
http://our.umbraco.org/projects/backoffice-extensions/image-cropper/image-cropper/32728-Get-Crops-with-Razor-syntax
Sören
Thanks Sören. That worked :)
Hi,
I would like to know if it is possible to have an image and crop in way that the width is 100% because I want the image as a cover photo on each page.
Therefore, I would like to set the crop with width 100% and height 563px for example.
Is is possible pls?
Thank you in advance.
Regards
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.