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

Adjust the sharp syntax #5881

Merged
merged 1 commit into from Dec 11, 2019
Merged

Adjust the sharp syntax #5881

merged 1 commit into from Dec 11, 2019

Conversation

janus-reith
Copy link
Collaborator

@janus-reith janus-reith commented Dec 10, 2019

Signed-off-by: Janus Reith janus.reith@googlemail.com

Resolves #5803
Impact: critical
Type: bugfix

Issue

sharp was updated from ^0.20.5 to ~0.23.1.
The way resizing works changed in sharp v0.22.0.

Solution

Adjust the syntax accordig to the sharp docs. The conversions for each store should work the same, except for the additional withoutEnlargement option. I also added an event handler that takes care of throwing a ReactionError on error.

Breaking changes

Due to withoutEnlargement option the images that are smaller than the dimensions set on each store won't be scaled up anymore and therefore don't take up additional space without providing a better quality.

Testing

TBD - Could use the remoteUrlWorker and place a record in the cfs.Media.filerecord collection.

Signed-off-by: Janus Reith <janus.reith@googlemail.com>
@aldeed aldeed self-requested a review December 10, 2019 21:30
@aldeed aldeed added this to In progress in 3.0.0 via automation Dec 10, 2019
@aldeed aldeed moved this from In progress to Review in progress in 3.0.0 Dec 10, 2019
3.0.0 automation moved this from Review in progress to Reviewer approved Dec 11, 2019
@aldeed aldeed merged commit 0380c59 into reactioncommerce:release-3.0.0 Dec 11, 2019
3.0.0 automation moved this from Reviewer approved to Done Dec 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
3.0.0
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants