Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Umbraco 12 uses ImageSharp 3 by default, but also provides an
Umbraco.Cms.Imaging.ImageSharp2
package if you can't use this version and want to stick to ImageSharp 2, e.g. because of the license change or other dependencies (see PRs umbraco/Umbraco-CMS#14216 and umbraco/Umbraco-CMS#14223).This package can be installed instead of
Umbraco.Cms.Imaging.ImageSharp
(that will be kept up to date with the latest ImageSharp version) by switching fromUmbraco.Cms
(that bundles all default/optional dependencies) toUmbraco.Cms.Targets
and including any other required dependencies yourself.We initially released Umbraco.StorageProviders 12 RC versions that had direct dependencies on the ImageSharp 2 packages and let the transitive dependency resolution pick the lowest compatible version. This however resulted in always using
SixLabors.ImageSharp.Web.Providers.Azure
v2, even when used together withSixLabors.ImageSharp.Web
v3. This currently isn't an issue because of the lack of an upper version limit, but could be in a future update, besides always resolving to the lowest compatible version and not taking advantage of the latest v3 updates. However, we also failed to notice thatUmbraco.StorageProviders.AzureBlob.ImageSharp
had a direct dependency onUmbraco.Cms.Imaging.ImageSharp
, which makes the dependency on ImageSharp require version 3 and thereby prevents you to use this package with v2 altogether 🙁For the final v12 version, I bumped the ImageSharp dependency to the latest v3, resulting in not being able to use this package with v2... This PR adds that support by introducing a new
Umbraco.StorageProviders.AzureBlob.ImageSharp2
package that you can install: