#Azure CDN not rendering ImageSharp resizing

1 messages · Page 1 of 1 (latest)

zealous tiger
#

Hi pals,
I have my /media and /cache items in my blob storage and they are rendering via the CDN domain all good, the image URLs are automatically rendering in the front end razor.
However, the front end devs have noticed their resizing requests of the URLs are no longer working now I have switched on the CDN, for example ?width=

Have I just missed something from the configuration to make it still allow these?

Thanks in advance 🙂

opaque swan
#

Where does your CDN origin point at? It needs to point at the Umbraco site for ImageSharp to pick up the requests, if it’s pointing at blob storage it’ll just return the image without any processing.

zealous tiger
#

Thanks Rasmus, I will check that.

zealous tiger
#

@opaque swan for the CDN URL in the config do you just point it at your site domain or set up a separate media specific domain?

opaque swan
#

The CDN Url in the config should be the CDN domain you want the media to be served from, e.g. cdn.example.org . All the CDN Url config does, is adding a custom MediaUrlProvider which prefixes all media Url's with the value from the config (and by default also removing /media from the url), so a media Url should en up looking something like https://cdn.example.org/8d832c7491aab09/support.png.

Then for image procesing to work the origin at the CDN provider should be pointing at the Umbraco site like example.org/media