Closed (fixed)
Project:
Image javascript crop
Version:
5.x-1.x-dev
Component:
PHP
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Sep 2008 at 09:39 UTC
Updated:
14 Oct 2008 at 13:14 UTC
Jump to comment: Most recent file
Comments
Comment #1
swentel commentedWell all actions after a javascript crop action are blocked when using the toolbox normally, unless I missed out somewhere - or not understanding your question correctly. You can make the box resizable, but ratio support will be available for the D6 version first, I might backport it once a D6 version is out.
Comment #2
mindgame commentedYes, I also expected the actions after javascript_crop to be blocked, that's what I meant.
But actually they weren't.
I have a test preset with these actions:
1. Javascript crop (width: 100, height: 100, xoffset: center, yoffset: center, resizable: 1)
2. Scale And Crop (width: 100, height: 100)
When I go to choose a new cropping area in the toolbox the original image always appeares scaled-and-cropped to 100x100.
Even an update from 5.x-1.1 to the 5.x-1.x-dev (2008-Sep-26) didn't help.
Maybe really something is missed out, because in the imagecrop.module, function create_image_object(), there's a break when a javascript_crop action is found, but the remaining actions are not unset. The attached patch made it work as I think it should? At least I'm very happy now with the module! :)
Comment #3
swentel commentedHmm, it looks you are completely right about this, nice catch! I'll commit this somewhere tonight normally!
Comment #4
swentel commentedJust changing status so I don't forget to look at this tonight / tomorrow :)
Comment #5
swentel commentedI commited the fix to Drupal 5 branch, implemented it with a few changes (cf http://drupal.org/cvs?commit=143570). Thanks for this report!
Comment #6
mindgame commentedThanks for this module, but now I migrated to D6 and I'm missing it!
Comment #7
swentel commentedI'll be working on that this friday to start the first branch, I'll also roll out another release for D5