Closed jimrowetpa closed 2 years ago
Seems like this is a complete red herring. The removed setting is correct and the Umbraco.StorageProviders.AzureBlob.ImageSharp library is not required for version 10.
The resizing was being prevented because of UseStaticFiles call in Startup.cs
Since that is default for a new install of Umbraco 10 that might be worth adding to the instructions but this isn't a bug.
Thanks to this forum post - https://our.umbraco.com/forum/using-umbraco-and-getting-started/109573-getcropurl-doesnt-resize-the-image-on-umbraco-10
This is affecting Umbraco 10.
Followed these instructions to configure - https://our.umbraco.com/documentation/Extending/FileSystemProviders/Azure-Blob-Storage/
Media is uploaded correctly but when rendered the original image is always returned regardless of the crop/quality/format parameters we use. We generate the URLs for the images using the standard Umbraco extensions in FriendlyImageCropperTemplateExtensions.
What we expect is an image returned matching the parameters requested.
For example "/media/mediaid/someimage.png?width=300&height=200&quality=90&format=jpg"
Should return a 300x200 jpeg with quality 90.
What actually gets returned is the original image.
The solution appears to be to follow the further instructions here - https://github.com/umbraco/Umbraco.StorageProviders#umbracostorageprovidersazureblobimagesharp
and install Umbraco.StorageProviders.AzureBlob.ImageSharp.
Umbraco.StorageProviders.AzureBlob.ImageSharp has only been released for .NET 7 and so cannot be installed on Umbraco 10.
Thanks!