Active
Project:
Image javascript crop
Version:
7.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
10 Dec 2012 at 17:16 UTC
Updated:
9 Oct 2014 at 15:02 UTC
Jump to comment: Most recent
Comments
Comment #1
joekersDo you mean once you have clicked "Save selection" for it to refresh the page with the new image?
As I needed to do this - from the Jquery UI Dialog - and have just manage to do it using a small bit of Jquery..
Comment #2
duaelfrI mean when you upload an image in a D7 admin form, there is a thumbnail which is shown.
As this thumbnail is using an image style chosen by the site builder and as this image style can use a javascript crop alteration, this thumbnail should be reloaded after the user click on "Save selection" or "Done cropping" regardless of the cropping method (jQuery UI, iframe, Colorbox...)
Comment #3
gagarine commentedYes I made some user test and it's disturbing for the end user. They either think their change was not save or just don't understand why is not reflected in the interface.
But I have to say I don't know the right approach to do that with FAPI.
Comment #4
klonosYep, the users are honestly lead to believe that their cropping changes and saving did not have any effect whatsoever. The thumbnail needs to be updated to reflect the cropped area of the image.
Comment #5
manila555 commentedYes, I also have this same problem where the users click "Save Selection" and "Done Cropping" but have no idea what to do from that point forward. It does look like none of the cropping changes were applied.
My question is also, once the user crops the image and saves it. How do I displayed the cropped image on the node?
Comment #6
saru1683 commentedI did some debug and found a solution to change the thumbnail after the "Save Selection".
Changed imagecrop.js located on js folder of imagecrop module, The Changes are bellowed.
Thank you.
Comment #7
mikpouet commentedSame issue, my version is "7.x-1.0-rc3+68-dev".
I just had to add this in imagecrop.js on line 13:
Drupal.Imagecrop.forceUpdate();after the line:
$('img', '#imagecrop-preview').bind('load', Drupal.Imagecrop.forceUpdate);The function was already there, just need to fire it at the right time.
Thank you people for this nice plugin btw!