I wasn't sure what component to check for the bug, but js seems the logical one

The bug happens when using a cropping style that's not supposed to allow down scaling of it's zone.

What happens:

The zone is incorrectly smaller

What should happen:

The cropping zone should retain it's width - height (perhaps it would be nice to reset it every time the user changes his image's size?)

How to reproduce:

1. Create a cropping style using any size, make sure it's 'do no allow down scaling' option is checked.

2. Add a picture anywhere.

3. Open the cropping window for the #2 picture.

4. Editing the image style from which the #1 cropping style has been set, place the cropping region on the bottom right of the picture.

5. Downscale the picture's size.

6. Notice the cropping zone is now smaller.

Please refer to my screenshots for more info.

CommentFileSizeAuthor
settings.png83.53 KBMarc-Antoine
05.png71.54 KBMarc-Antoine
04.png119.06 KBMarc-Antoine
03.png95.21 KBMarc-Antoine
02.png122.69 KBMarc-Antoine
01.png74.89 KBMarc-Antoine

Comments

nils.destoop’s picture

Status: Active » Fixed

The bug occured when the crop selection would go outside the image. Some js modifications has been done, this should be fixed now.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.