I want to edit crop, after it saves, the first crop continues in the content view, I can not edit. After edit, crop marking is on the new place in content edit, but when viewing the content remains the first crop. Already cleared all caches, changed browser, machine and nothing changed.
the example of drupal 6 on: (http://www.aswissidea.com/) you can edit the content and can move the crop of place, I click save and shows a good. but the example of drupal 7 on: (http://www.aswissidea.org/) I can not edit content for testing whether you are bug, the user demo does not have permission to edit content.
Comment | File | Size | Author |
---|---|---|---|
#9 | epsacrop-1751692.patch | 501 bytes | antoniogr |
Comments
Comment #1
MathieuMa CreditAttribution: MathieuMa commentedWe are checking the same issue - when updating a crop with a preset of the same size, the previous picture is not replaced by the new one.
This is due to the core handling of imagecache : if the image is there, with the proper name (which includes the presset name) - processing is not done again.
Modifying an existing croped picture should trigger a deletion of the cached image (so it's regenerated next time the preset is called)
I'll post what I find once I have a solution.
Comment #2
Elijah LynnSame here. In addition, I am also getting the error - Notice: Undefined index: epsacrop-5-4 in epsacrop_crop_image()
I am on 7.x-2.2, however I wonder if this is fixed in latest dev.
Comment #3
Elijah LynnTested latest dev and not getting error anymore but still same issue, only crops on first upload.
Comment #4
Elijah LynnComment #5
Elijah LynnCross linking relevant D7 issue - "Not saving crop" - http://drupal.org/node/1664216
Comment #6
Elijah LynnCross linking relevant D6 issue - "Save button does nothing I can see" - http://drupal.org/node/1328744
Comment #7
Elijah LynnI went ahead and cloned the site then started disabling modules. It came down to a Pantheon API module I had enabled on my local environment. However, when the site is live on Pantheon servers and the module is enabled, it works more than half the time, sometimes it puts an image up sometimes it doesn't and sometimes it takes a minute for the image to be generated.
Anyways, I don't know what is conflicting as I am not that savvy (yet) but it seems like another module is fighting the epsacrop module or imagestyles.
Update: sure enough, the Pantheon Platform API module has the below code which probably has nothing to do with epsa crop and all todo with image styles:
Comment #8
Elijah LynnAfter messing around with it more I decided to go with the latest dev of Manual Crop. It is pretty nice and works well. http://drupal.org/project/manual-crop
Comment #9
antoniogr CreditAttribution: antoniogr commentedI have the same problem, It works when I delete the cached images.
I find the problem for me is in the function _epsacrop_get_style_name_from_url() when it's return FALSE don't update the new crop styles and set centered.
I updated this function to return the first epsa styles defined.
Now it's working fine for me.
I attach a patch, maybe could be useful for someone.
Comment #10
CB