Anytime I try to save a crop to any image style I receive this error.

"The crop selection for image.jpg (image style name) is invalid, please clear it or reselect."

The only issue I can find related to this error is this:
https://www.drupal.org/node/1890830
I am not using this version of the module, but I went into the .module file and attempted to recreate that Math.round() function that was used to solve this individuals issue. It did not help.

Any help would be appreciated. Please, let me know if there is anything else I can provide that will assist in debugging this issue.

Comments

dsoini’s picture

I am also getting this error. If I move the default crop selection to another position, there appear to be rounding errors. If my crop selection size is 800x600 and I move the default box without resizing it, I get 800x599 or 801x600.

netsensei’s picture

We are seeing the same error. The fix in the older issue does not solve this. I've tried to reproduce it with a variety of images, selections, etc.
I do think there is still a rounding bug in the Javascript. but I can't trigger it in a consistent way (If I can trigger this error at all).

What I did notice consistently:

When dragging the selection window, the dimensions of the selection often do change by 1px (ie 99 x 100 or 101 x 100)

dddbbb’s picture

Version: 7.x-1.4 » 7.x-1.6
Priority: Normal » Major

Also seeing this issue and I'm running 7.x-1.6. Upping to major priority since there is no clear workaround.

bisonbleu’s picture

Just stumbled on this issue. I'm not convinced it's related to a rounding issue in the JS. It seems to be related to existing content that already have images. I have not seen this error while creating new content with fresh images.

Simple workaround:

  • Remove the image and Save the node.
  • Give the image a different name and re-upload it to the node.

Using version 7.x-1.6+3-dev, my image field has a Maximum image resolution of 1024 x 768.