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

[7.4-stable] Fix image cropper #3193

Merged
merged 3 commits into from
Mar 5, 2025
Merged

Conversation

alchemycms-bot
Copy link
Collaborator

Backport

This will backport the following commits from main to 7.4-stable:

Questions ?

Please refer to the Backport tool documentation

tvdeyen added 3 commits March 5, 2025 14:18
If we check image orientation, cropperjs makes a ajax request
without propper CORS headers which prevents the browser from
loading the image. According [1] to the docs we need to turn off
this check in order to prevent CORS issues.

[1](https://github.com/fengyuanchen/cropperjs/blob/v1/README.md#checkorientation)

(cherry picked from commit 9677d43)
CropperJS does not support setting the min width and
a crop area on init. Since a min width is a debatable feature
anyway, we just remove it and let the user decide how small
the image might get.

(cherry picked from commit 70a07b3)
GitHub changed how the `failure()` and `success()` function
work without any warning. Thanks for that, folks!

Using job outputs instead.

(cherry picked from commit cd2def9)
@alchemycms-bot alchemycms-bot requested a review from a team as a code owner March 5, 2025 14:18
@alchemycms-bot alchemycms-bot mentioned this pull request Mar 5, 2025
3 tasks
Copy link

codecov bot commented Mar 5, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.46%. Comparing base (9d5fe03) to head (d67f6b1).
Report is 4 commits behind head on 7.4-stable.

Additional details and impacted files
@@             Coverage Diff             @@
##           7.4-stable    #3193   +/-   ##
===========================================
  Coverage       96.46%   96.46%           
===========================================
  Files             238      238           
  Lines            6454     6454           
===========================================
  Hits             6226     6226           
  Misses            228      228           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@tvdeyen tvdeyen enabled auto-merge March 5, 2025 14:35
@tvdeyen tvdeyen merged commit 3c8e7dd into 7.4-stable Mar 5, 2025
52 of 53 checks passed
@tvdeyen tvdeyen deleted the backport/7.4-stable/pr-3192 branch March 5, 2025 14:41
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.

2 participants