Active
Project:
Manual Crop
Version:
7.x-1.6
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Sep 2014 at 05:02 UTC
Updated:
20 Dec 2017 at 15:04 UTC
Jump to comment: Most recent
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
Comment #1
dsoini commentedI 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.
Comment #2
netsensei commentedWe 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)
Comment #3
dddbbb commentedAlso seeing this issue and I'm running 7.x-1.6. Upping to major priority since there is no clear workaround.
Comment #4
bisonbleu commentedJust 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:
Using version 7.x-1.6+3-dev, my image field has a Maximum image resolution of 1024 x 768.