Different image size when using UmbracoFileSystemProviders.Azure
I have 2 versions of a website, development and live.
Both sites run on Azure, but development is using UmbracoFileSystemProviders.Azure for media and the live site is just regular, like Umbraco out-of-the-box.
The weird thing is that the development site gets images with a slightly different sizing than the live site. And the only difference is the UmbracoFileSystemProviders.Azure
Different image size when using UmbracoFileSystemProviders.Azure
I have 2 versions of a website, development and live.
Both sites run on Azure, but development is using UmbracoFileSystemProviders.Azure for media and the live site is just regular, like Umbraco out-of-the-box.
The weird thing is that the development site gets images with a slightly different sizing than the live site. And the only difference is the UmbracoFileSystemProviders.Azure
Here you can see 2 links:
Local: http://www.dynaudio.com/media/2114/dynaudio-berlin-13.jpg?cropmode=percentage&width=765&height=493&crop=0.033898,0.060396,0.012712,0.017763
Azure: http://dynaudio-development.azurewebsites.net/media/2114/dynaudio-berlin-13.jpg?cropmode=percentage&width=765&height=493&crop=0.033898,0.060396,0.012712,0.017763
Here is another example:
Local: www.dynaudio.com/media/2123/dynaudio-berlin-7.jpg?cropmode=percentage&width=364&height=255&crop=0.227217,0.173281,0.315839,0.346431
Azure: http://dynaudio-development.azurewebsites.net/media/2123/dynaudio-berlin-7.jpg?cropmode=percentage&width=364&height=255&crop=0.227217,0.173281,0.315839,0.346431
Hi Sebastian,
Can't tell you why they're different, other than it's very likely a difference in some version of some component :-)
IRRC, the order of the operations is important – try putting the
width
&height
parameters last in the query.So having the sizes first will perform the crop on the resized version (I think) and in the process, try to fit it within the specified sizes (?).
Putting the sizes last, will at least give you an image of that exact size.
/Chriztian
Ahhh ... Thank you.
I actually remember that we've talked about something similar before. :)
is working on a reply...