I have a v9 install using ImageSharp 1.0.4 and with the release of ImageSharp 2.0.0 I thought I'd upgrade to get the WebP support, only this upgrade breaks nearly all calls to the media.
Since the reference to ImageSharp 1.0.4 is a dependency of the Umbraco install, I've had to explicitly install ImageSharp 2.0.0 which the project doesn't complain about but any attempts to access the media with a height/width/format querystring throws a MissingMethodException, specifically the Image.DetectFormatAsync() method.
Obviously this is only called when an attempt is made to call a method dynamically but it impliesthat the ImageSharp library is missing the method which it isn't.
ImageSharp 2 is not currently being shipped with Umbraco v9 because it is a considered a breaking change - There is a github discussion/issue about it all I believe.
Some people have had success in "hacking" it to get it to work, however there is also a comment that it doesn't work with blob storage as some changes to the provider would be needed.
Umbraco 9 + ImageSharp v2
I have a v9 install using ImageSharp 1.0.4 and with the release of ImageSharp 2.0.0 I thought I'd upgrade to get the WebP support, only this upgrade breaks nearly all calls to the media.
Since the reference to ImageSharp 1.0.4 is a dependency of the Umbraco install, I've had to explicitly install ImageSharp 2.0.0 which the project doesn't complain about but any attempts to access the media with a height/width/format querystring throws a
MissingMethodException
, specifically theImage.DetectFormatAsync()
method.Obviously this is only called when an attempt is made to call a method dynamically but it impliesthat the ImageSharp library is missing the method which it isn't.
Any ideas?
Hi Kieron,
ImageSharp 2 is not currently being shipped with Umbraco v9 because it is a considered a breaking change - There is a github discussion/issue about it all I believe.
However, this thread here might help:
https://our.umbraco.com/forum/using-umbraco-and-getting-started/108240-umbraco-920-imagesharpweb-webp
Some people have had success in "hacking" it to get it to work, however there is also a comment that it doesn't work with blob storage as some changes to the provider would be needed.
Thanks
Nik
Hey Nik, yep was literally just reading through that thread. Thanks for that! Will keep my eye to ground for updates ;)
is working on a reply...