Problem/Motivation

The placeholder "Select an image size to crop" has a different width than the image style.

Proposed resolution

The width of the crop area should be reserved based on the image style size.
Or should we define it separately?

User interface changes

A stable width situation of the crop widget.

Comments

miro_dietiker created an issue. See original summary.

woprrr’s picture

Issue tags: +D8Media, +d8ux

Still good question! I will try to answer at best.

It should be understood that the box has support usage and box containing the elements to crop are different.

The crop area is fixed by imageStyle "crop_thumbnail", This imageStyle sets the width of the image uploaded 400px (because it was the max size of the crop area in early versions).

This fixed width is very important because it is through it that it is possible to calculate the rate of enlargement / reduction in relation to upload image.
Summarize when a user upload a large image, we scale the width (or height we might as) in a manner not to distort the ratio of the image and thus to seize an area on a thumbnail and apply it precision on the original image (larger).
@see ImageCropWidget::getThumbnailCropProperties() && ImageWidgetCrop::applyCrop()

The box of crop is entirely responsive and takes the place that is available between the center and the list not to have empty area.

woprrr’s picture

I think this can be discuss / fixe in #2625026

woprrr’s picture

Status: Active » Postponed
woprrr’s picture

Status: Postponed » Closed (fixed)

Fixed in #2625026