Skip to content
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

fix: fix regression where crops with the default crop setting would s… #2998

Merged
merged 2 commits into from
May 15, 2024

Conversation

Levdbas
Copy link
Member

@Levdbas Levdbas commented May 13, 2024

Related:

Issue

In 18bf358 a bug was introduced where the default crop parameter would lead to squeezing the image inside a confined space. instead of cropping into the image.

Solution

Revert that if statement to the way it was in 1.x

Impact

Working crops!

Usage Changes

No.

Considerations

See

Testing

no.

…queeze the image inside dimensions instead of cropping.
@Levdbas Levdbas linked an issue May 13, 2024 that may be closed by this pull request
@Levdbas
Copy link
Member Author

Levdbas commented May 13, 2024

@nlemoine , could you help me with this? The tests are false positives from what I can see from local tests. They just run fine. How to proceed?

@Levdbas
Copy link
Member Author

Levdbas commented May 14, 2024

@timber/rangers , only one error remains in the testExternalImageWithExternalUrlAndNoImageExtension test. @gchtr , you introduced that test a few months ago. Could you shine your light on why path would be empty? Running the tests locally works just fine.

Edit: I see this PR runs into the same issues: https://github.com/timber/timber/actions/runs/9073988724/job/24932007649?pr=2999

@gchtr
Copy link
Member

gchtr commented May 15, 2024

@Levdbas I fixed it! Just joking. I had no idea why the error happened so I just re-ran the failing tests. It looks like there was some issue in the containers used for the tests.

I also ran into this issue on a site I’m working on, and I can confirm that this fixes the issue.

Just a note for anyone running into this and wondering why an image doesn’t look right after the Update: Images sizes need to be deleted and generated again for the fix to be applied to the image.

@Levdbas Levdbas merged commit 8090247 into 2.x May 15, 2024
24 checks passed
@Levdbas Levdbas deleted the 2986-bug-resized-images-look-wrong branch May 15, 2024 09:06
This was referenced May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Resized images look wrong
2 participants