Active
Project:
Manual Crop
Version:
7.x-1.4
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 Nov 2014 at 11:51 UTC
Updated:
28 Nov 2014 at 13:02 UTC
Jump to comment: Most recent
Crop conditions are not used when there is multiple image in a entity with the same manualcrop style applied.
The same image crop style applied only once on a single image field works correctly, but once there is more than one image with a manualcrop style, he is just ignoring the minimal and ratio conditions.
the width, heigth (...) in Drupal.settings.manualCrop.styles.some_style.data are stored as array of n element where n is the number of crop styles used (i'm not sure to give relevant information here).
Comments
Comment #1
theio commentedComment #2
theio commentedI solved this issue by making a behavior turning the crop styles needed turn back to their needed state.
It works with panels, and should work whatever image fields & differents crop styles you use by finding the styles is needed and make them usable.
there is the code :
behavior :
main function :
the others functions :