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

Only crop image if cropping is enabled #2143

Merged
merged 1 commit into from
Jun 28, 2021

Conversation

tvdeyen
Copy link
Member

@tvdeyen tvdeyen commented Jun 27, 2021

What is this pull request for?

Before we enabled cropping even if cropping was disabled only because we had crop values in the database. This is confusing, inconsistent and error prone. Imagine an essence picture having crop values, but the image cropper is disabled because the element settings has been changed. The image was still be cropped in those cases, leaving the editor no control over the cropped area.

Now cropping has to be explicitly enabled in the element settings to crop an image, regardless of the database state.

Checklist

  • I have followed Pull Request guidelines
  • I have added a detailed description into each commit message
  • I have added tests to cover this change

@tvdeyen tvdeyen added this to the 6.0 milestone Jun 27, 2021
@tvdeyen tvdeyen requested a review from mamhoff June 27, 2021 11:47
@tvdeyen tvdeyen force-pushed the only-crop-if-enabled branch from 636603d to f9ddbf6 Compare June 27, 2021 12:28
Copy link
Contributor

@mamhoff mamhoff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice

Before we enabled cropping even if cropping was disabled
only because we had crop values in the database. This is
confusing, inconsistent and error prone. Imagine an
essence picture having crop values, but the image cropper
is disabled because the element settings has been changed.
The image was still be cropped in those cases.

Now cropping has to be explicitely enabled in the element
settings to crop an image, regardless of the database state.
@tvdeyen tvdeyen force-pushed the only-crop-if-enabled branch from f9ddbf6 to 5474ff4 Compare June 28, 2021 09:55
@tvdeyen tvdeyen merged commit f4f9b58 into AlchemyCMS:main Jun 28, 2021
@tvdeyen tvdeyen deleted the only-crop-if-enabled branch June 28, 2021 10:01
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