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
On my Umbraco 8 solution I have installed the "UmbracoFileSystemProviders.Azure v2" NuGet via Visual Studio "Manage NuGet Packages", and when I use the "GetCropUrl( )" method, it returns the URL correctly, but the image shown isn't cropped.
Here you can see how I'm getting the URL:
HomePage homePage = Umbraco.ContentAtRoot().DescendantsOrSelf<HomePage>().FirstOrDefault();
var image = homePage.CategoryListCategories.First().ContentImage;
var imageCropped = ImageCropperTemplateExtensions.GetCropUrl(image,150,200,"UmbracoFile", "Inline mobile", null,null,null, true, true);
And here the URL that I get:
imageCropped = /media/qngfds9l/test-image.jpg?anchor=center&mode=crop&width=374&height=260&rnd=132645303938800000
The image shown at this URL it isn't cropped.
I also have defined different crop aliases, I have configured my "web.config" and "security.config" properly, but the cropper doesn't work.
Do you have any suggestions?
I have found a solution in an old Umbraco 7 post.
It seems that if you proceed installing the "UmbracoFileSystemProviders.Azure v2" via "Visual Studio > Manage NuGet Packages", it will not install all the necessary dependencies.
So, after you have installed and configured the "UmbracoFileSystemProviders.Azure" NuGet following the GitHub instructions, you need to run your Umbraco solution. Going to the backoffice, under "Packages" searching "UmbracoFileSystemProviders.Azure" and installing it again. It will start a wizard that automatically takes all your previous configurations, and installs all the missing dependencies.
Here the wizard:
Here the missing files added, see the "A" (Added) and "M" (Modified) tags:
Here the missing dependencies added:
I hope that this can be useful to other Azure users.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted