Skip to content

Update to SixLabors.ImageSharp.Web 1.0.4 and remove processing order workarounds #11349

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 25 commits into from
Nov 24, 2021

Conversation

ronaldbarendse
Copy link
Contributor

ImageSharp.Web 1.0.4 is released, that contains the bugfix to use the processing order from the URL (instead of DI registration). This makes the workarounds added in the following PRs obsolete:

Prerequisites

  • I have added steps to test this contribution in the description below

Description

Because the fix in ImageSharp.Web might result in different generated images, it's recommended to delete /umbraco/Data/TEMP/MediaCache (or wherever you have configured the ImageSharp.Web cache, like Azure Blob Storage).

This PR can be tested by ensuring the image crop URLs generate the same/correct image, as mentioned in #10623 (comment) and #11241 (comment).

The image crop URL in the default ImageSharpImageUrlGenerator implementation already uses the correct parameter order. We could switch the focal point rxy and crop cc, so all resize commands are added after the crop command, but these values are/should never be used at the same time anyway (it either uses the focal point or a crop).

julian-code and others added 22 commits October 2, 2021 15:58
* add test for textbox max length

* remove leftover comment

Co-authored-by: Jesper <[email protected]>
…ms (#11219)

Changed the case of `BlockList` to `blocklist` as it breaks on Unix/Linux.
Thanks @lauraneto - reviewed this and your fix solves the issue. #h5yr
…1261)

* Add ModelsBuilder unit tests to cover Inheritance and Composition

* add name to GenerateSimpleType test
* Added support for Smtp PickupDirectory

* Add reference to the implementation outline by MailKit

Co-authored-by: Bjarke Berg <[email protected]>

Co-authored-by: Bjarke Berg <[email protected]>
* Added missing GetCropUrl overload for MediaWithCrops with the extra configuration options

The missing overload would mean that if anyone tried to use the extra options with MediaWithCrops, they would be using the IPublishedContent extension method instead.
This would cause several issues, like not loading the local crops and returning null for a lot of scenarios that should work.

* Added documentation to the added overload

* Use extension method
A fallback for browsers that don't support `contain: content`, to make sure the positioning context is correct
* Remove remaining web.config references in translation files so it will fallback to the correct English text

* Remove final reference to web.config in config/lang

ru errorChangingProviderPassword

Co-authored-by: Paul Johnson <[email protected]>
ronaldbarendse and others added 2 commits October 12, 2021 11:00
# Conflicts:
#	src/Umbraco.Tests.AcceptanceTest/cypress/integration/Users/users.ts
#	src/Umbraco.Web.UI/umbraco/config/lang/cy.xml
#	src/Umbraco.Web.UI/umbraco/config/lang/da.xml
#	src/Umbraco.Web.UI/umbraco/config/lang/en.xml
#	src/Umbraco.Web.UI/umbraco/config/lang/en_us.xml
#	src/Umbraco.Web.UI/umbraco/config/lang/it.xml
#	src/Umbraco.Web.UI/umbraco/config/lang/nl.xml
#	tests/Umbraco.Tests.AcceptanceTest/cypress/integration/DataTypes/dataTypes.ts
@ronaldbarendse ronaldbarendse changed the base branch from v9/contrib to v9/dev November 24, 2021 08:17
@Zeegaan
Copy link
Member

Zeegaan commented Nov 24, 2021

I made an oopsie here and unfortunately merged v9/dev into this PR instead of contrib, thanks to Ronald for changing the target 🙈
Changes work both before and after my oopsie, so after tests pass I'll merge 👍

@Zeegaan Zeegaan merged commit b5a895e into v9/dev Nov 24, 2021
@Zeegaan Zeegaan deleted the v9/feature/update-imagesharp-web branch November 24, 2021 09:24
@hemraker hemraker added the dependencies Pull requests that update a dependency file label Dec 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file release/9.2.0 type/feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.