In jCrop aspect ration value is calculated:

aspectRatio: Drupal.settings.dmupc.a_width / Drupal.settings.dmupc.a_height,

and this don't work if a_width and a_height are not numbers. Some browser ignore error and give 1, but some others crash the plugin. Casting a_height and a_width to integer solve the issue.

Comments

mavimo’s picture