Hello,

In manualcrop.js, I can see this code

     if (!ManualCrop.oldSelection) {
        // Create a default crop area.
        if (elementSettings && elementSettings.defaultCropArea) {
          if (elementSettings.maximizeDefaultCropArea) {
            ManualCrop.isLoaded(ManualCrop.croptool, ManualCrop.maximizeSelection);
          }
          else {
            var minWidth = (typeof options.minWidth != 'undefined' ? options.minWidth : 0);
            var minHeight = (typeof options.minHeight != 'undefined' ? options.minHeight : 0)

            // Set a width and height.
            var selection = {
              width: (minWidth ? minWidth * 100 : (width / 2)),
              height: (minHeight ? minHeight * 100 : (height / 2)),
              maxWidth: (dimensions.width / 2),
              maxHeight: (dimensions.height / 2)
            };

            // Resize the selection.
            selection = ManualCrop.resizeDimensions(selection);

I would like to understand why the minWidth and minHeight values that come from the image-style are multiplied by 100.

I would like to show to the user the exact dimensions of the image-style the user has chosen, and I don't quite understand the meaning of this multiplication. Is it safe for me if I remove them ? What are their purposes ? I guess it is just to make the selection bigger respecting the aspect-ratio, but I find * 100 a little too much, if for example I had a crop with 150x200, that will make 15000x20000 is not this thing weird ?

Thanks in advance.

Comments

unknownguy created an issue.