Here's what I did:
1. Created a new preset named "300_wide" using the Javascript crop action (300, 200, center, center)
2. (Edit image > Javascript crop) which shows this screen The image shown here is the correct size (300 x 200)
3. Then I click on "Click here to choose another crop area for this picture" which shows this screen
The problem here is that 1) the overlay box is not the right size (t should be 300x200 right?), and 2) I am unable to drag the box around.
Here are the module versions I'm using:
Imagecache javascript crop 6.x-1.x-dev
ImageCache 6.x-2.0-beta5
ImageAPI 6.x-1.2
jQuery UI 6.x-1.2
jQuery Update 6.x-1.1
Comments
Comment #1
aaron stanush commentedupdated title
Comment #2
ScarabMonkey commentedI have the same issue (Firefox Mac), on IE7 however, the box is correct but I can't move it.
Comment #3
Schneck commentedSame here, using 6.x-1.x-dev
Comment #4
sigveio commentedExactly the same here with:
Drupal 6.9
image 6.x-1.0-alpha4
imageapi-6.x-1.3
imagecache-6.x-2.0-beta8
imagecrop-6.x-1.x-dev
jquery_ui-6.x-1.2 installed w/ jquery.ui-1.6rc5 dev bundle
jquery_update-6.x-1.1
The original ticket was posted January 22nd, and since then there's been others confirming the issue, without any reply from module author as of yet. I have to ask; Is this module currently unsupported?
Are there any (working) alternatives to it - that works with imagecache?
Comment #5
ScarabMonkey commentedAlternatively, could anyone throw together a non-gui version of this where we can just put in the co-ordinates...
Comment #6
gutomec commentedI have the same issue.
Comment #7
MercWorks commentedSame. Such a shame; this module has exactly the functionality I need, if it were working!
Comment #8
onaz commentedSame here. The crop action behaves as if javascript wasn't enabled (though it naturally is). Did anyone fix this? If not, anyone interested in looking into this for $100?
Comment #9
juroon commentedSubscribe
Comment #10
chrislabeard commentedsame problem here as well.
Comment #11
chrislabeard commentedIs it a theme conflict or is it actually the module?
Comment #12
onaz commented#11
I haven't really dug deep in this issue but I think it's a one-liner code issue or a configuration issue. I'm using an unmodified Garland as my theme (at this stage of development) so I highly doubt it's a pure theme thing. Maybe it's a jquery UI + other modules version thing?
Comment #13
chrislabeard commentedWell i don't know anything about jquery so any patches?
Comment #14
jo1ene commentedI have this problem as well, with D6.12 and recent modules as of today. No ideas.
Comment #15
skiminki commentedOk, looked into this and attached are the files to make things work again (at least for me ;) ). The recipe:
The problem was that jquery_ui-module does not deliver those js files that are requested by imagecrop_docrop(). Therefore, javascript references that are produced by
jquery_ui_add(array('ui.resizable', 'ui.draggable', 'effects.scale'));are broken (browser gets 404s for these paths).
Maybe jquery_ui-module is broken or maybe it's used incorrectly, don't know. Anyways, the simple fix is to use own version of jquery-ui scripts and not to rely on jquery_ui module. Note that we should probably also use own version of jQuery in imagecrop_docrop(), as jquery-ui probably depends on specific versions of jQuery. For this reason, status marked as 'needs work'.
Comment #16
jo1ene commentedDoesn't work for me. There's a 3 line patch and inspection of the patch code tells me I have the tar ball extracted to the correct location.
Comment #17
longwaveThe patch above was not relevant in my case, the jquery_ui files were being loaded correctly but the crop box still did not work properly.
Instead, this seemed to be that the width and height values were not explicitly given in pixels and were ignored because of this. The attached patch for imagecrop.js works for me.
Comment #18
gooddesignusa commentedI used the patch from longwave (post #17) instead of the patch from #15.
Seems to work.
Thanks a lot longwave :)
Comment #19
chrislabeard commented#15 works great for me
Comment #20
skiminki commentedNow that I'm wiser about this: #15 and #17 fixes different problems. #17 is probably the real fix.
#15 applies when jquery_ui is not configured properly. You actually need to read jquery_ui/README.txt and follow the installation section. I managed to overlook that first, and I suspect that I'm not the only one.
IMHO, modules such as jquery_ui should be usable out-of-the-box or if not, they should at least warn that further manual steps are required. I think it would be nice of jquery_ui to make some checks and report file-related problems in admin/reports/status.
Anyways, I'd suggest following jquery_ui/README.txt installation steps instead of #15.
Comment #21
chrislabeard commenteddid this patch some how mess with permissions now my regular users can't see the javascript crop link ?
Comment #22
longwaveI committed the patch from #17 to the Drupal 6 development branch. If there are still problems with the overlay box not appearing correctly when jquery_ui is installed correctly, please reopen this issue.
@chrislabeard: This issue only concerns the JavaScript overlay box and will not affect the crop links, so this is unrelated to your issue.