Closed (works as designed)
Project:
Manual Crop (old)
Version:
7.x-1.4
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
24 Oct 2012 at 12:02 UTC
Updated:
28 Nov 2012 at 18:51 UTC
For me, Manual Crop won't work. Either a «Crop» button or a manualcrop thumbnail does appear after image upload. But clicking on it won't do anything. :(
Firebug console reports:
ReferenceError: ManualCrop is not defined
ManualCrop.showCroptool("field-image", "manualcrop", 214);
I don't have the media module installed (#1799078: Uncaught ReferenceError: ManualCrop is not defined ).
This issue might be a clone of (#1803840: The crop selection area does not appear in theme Zen (at least in the responsive version of it)).
Comments
Comment #1
matthijsHi,
I'm sorry you can't get it to work. Could you please try following:
If this work than there's a problem with the ajax-based loading of the Manual Crop javascript file. If that would be the case please try again without any other contrib modules nor themes.
Matthijs
Comment #2
matthijsComment #3
lolmaus commentedOkay, i've got a brand new website.
I've enabled some modules, including Manual Crop. Created a Manual Crop image style and enabled Manual Crop in field settings.
Then did as you said. No crop interface appears at all.
Previously i could say that Manual Crop is at least trying to do something by enabling the "List thumbs" Manual Crop option. That would change the display of a thumbnail. Now even that option won't do anything.
Consider setting this to critical: the module won't work at all.
Drupal 7.17.
Comment #4
matthijsHi,
I still can't reproduce this (also Drupal 7.17, a new install). Could you give me a list of installed third-party modules?
Matthijs
Comment #5
lolmaus commentedMultiuploads were not enabled for the field. FileField Sources was enabled, but the issue persists even when a filed is upload in a traditional way.
Okay, i tried disabling FileField Sources completely, still no luck!
Comment #6
bjalford commentedSeeing the same thing. The crop button appears when uploading a new image but not when editing a node.
Comment #7
lolmaus commentedI don't see the crop button at all.
Comment #8
bjalford commentedMy settings:
Image Style
Crop and scale manually with allow upscaling.
Image field on node
All checkboxes selected
When I upload an image the crop option appears and works and I can save the node. When I got back and edit the node there are no options - same as default image field.
Comment #9
bjalford commentedI've noticed that clicking on the upload button (the field is set to unlimited) without attaching a new image triggers the crop. I've tried the setting to show button rather than thumbnails and get the same thing.
Comment #10
matthijsHi guys,
I'll be looking into this soon (normally/hopefully tomorrow).
@bjalford: Could you give me a list of your installed third-party modules?
If possible, can I test this somewhere?
Thanks!
Matthijs
Comment #11
matthijsI still can't reproduce this, anything else important I should know?
Comment #12
lolmaus commentedTried again, new absolutely clean site, Manual Crop the only module enabled above core — won't work.
I can film a video reproducing that it won't work. Want me to?
Comment #13
lolmaus commentedThe only visible effect of having Manual Crop set up is that the attached image (without being hard-resized) is CSS-resized to dimensions set as minimum for "Manual Crop" image style.
Example. I set my "Manual Crop" image style to have 12x12 px minimum dimensions. When i create/edit a node, it has no cropping screen, but the image is displayed 12x12 px, while it's source file being larger.
Comment #14
matthijsCould you give me a dump of your site database? Than I can import it and try it myself with your settings :-)
Thanks in advance!
Matthijs
Comment #15
lolmaus commentedI fucking got it!
There's an option "Select the styles to be shown..." I've been selecting it all the time.
It actually says "Select the styles to be shown OR EXCLUDED, as selected above", and the default above selection is exclusion!
So it actually had no styles to crop.
Sorry for that! I was inattentive. On the other hand, the configuration interface was provoking me to make this mistake.
I've got another issue though. I've set Display to my manualcrop style. It would display the image with its source file correctly cropped, but with style's minimum width and height hardcoded to HTML!
<img typeof="foaf:Image" src="http://example.com/sites/example.com/files/styles/manual-crop/public/pic..." width="12" height="12" alt=""/>
Should i open a separate issue thread for that?
Comment #16
matthijsI'm glad you found it! The exclude/include options where added later, before an exclude was hard coded so that's why it remained the default.
Concerning your other issue: is this what you're looking for or did I misunderstood? #1556244: Using 'manual crop' style, and leaving the minimum height and/or width fields blank results in missing image attributes
Comment #17
lolmaus commentedMy issue does not correspond to your link's issue description as i'm providing both values.
But the workaround CSS solution should fix my issue too, so it might be the same issue, i dunno.
More specific description:
I've used the "Manual Crop" image style. Set the values to 12px and 12px. According to style's description those are minimum values for cropping. I. e. user cannot crop an image to a smaller size than 12x12.
The image results cropped correctly. But those minimal values are hardcoded into the HTML, and the cropped image gets resized by browser.
Comment #18
matthijsI see what you mean.. That's indeed a bug, could you please open a new issue for it?
Thanks!