Hey, first off: AMAZING module! Just a quick comment though, I personally use it to crop a node's representative image to specific resolution so that it will conform to a carousel. the problem is that the final dimensions happen to cause the dynamic preview to break the theme because the region that the node edit form resides in is too small.
So my request is: Is there any way to set max dimensions for the dynamic preview, instead of just having it adopt the dimensions of the cropped image? Or even if there was an option to disable the dynamic preview (even though that sucks, cause it's nifty :)
Thanks again for the great module!
Comment | File | Size | Author |
---|---|---|---|
#8 | Untitled.png | 733.38 KB | djbucci |
#2 | imagefield_crop_444422-1.patch | 3.85 KB | skilip |
Comments
Comment #1
patcon CreditAttribution: patcon commentedOK, anyhow, might have a solution. Didn't realize it was so easy to theme, so sorry for the bother!
Here's what I have, but I don't have access to my server now, so it's not tested yet:
Original theme:
Substituted with new theme function in my template.php file:
Comment #2
skilip CreditAttribution: skilip commentedHi, I took a slightly different approach and made the width configurable in the widget settings form.
Note that the patch is against 6.x-1.x-dev!
Comment #3
tribsel CreditAttribution: tribsel commentedjust tested and it looks like this patch works.
btw - is it possible to take live preview "outside" of document and display it closer to crop area or mouse cursor?
Comment #4
YK85 CreditAttribution: YK85 commentedHello,
I would like to learn more about this feature.
At the moment
1) user chooses an image to upload
2) the image is resized depending on imagefield settings
3) the image is cropped
Does this feature make it possible to crop the ORIGINAL image, then resize to what the imagefield max image dimensions are?
This will help maximum highest quality after the cropped image, where as if the image is resized, then cropped, it the quality will be degraded.
Thank you
Comment #5
TNmoxa CreditAttribution: TNmoxa commentedI have the same question as YK85. I need pictures of good quality, so I don't want to resize them. But after uploading big photos, they are shown too large so it's inconvenient to crop them. Is there any way to control the size of picture while cropping it without resizing them? It would be very useful. Thank you!
Comment #6
yhager CreditAttribution: yhager commented@YK85, @TNmoxa: although the image is resized for the display, the original image is cropped, not the resized one. This is to ensure best quality for cropped images.
Comment #7
tom_b CreditAttribution: tom_b commentedis there any info about this problem concerning the 7.x version of imagefield crop?
is the patch / function mentioned above transferable to the 7.x version?
Comment #8
djbucci CreditAttribution: djbucci commentedI know this is old, but *bump* this topic none the less.
I'm having similar issues and would like to know if there's a work around in Drupal 7.x (imagefield_crop version 1.0). When trying to use imagefield_crop for a content type I add/edit in the main content area of my site, it overflows like crazy (see attached screenshot).
In the administrative overlay, it overflows but then corrects itself shortly thereafter.
UPDATE: Just noticed that in the content display, no matter what resolution the image is cropped to it is scaled back to it's original resolution.
For instance. If I upload an image that is 1439x689 and crop it to a box that is 320x240 pixels, the image when viewed anywhere outside of the content-preview window (before publishing) is of resolution 320x240, but is scaled up to the width of the original image size (1439/320 = 4.5 --> 5*(320x240) = 1439x1080).
Comment #9
djbucci CreditAttribution: djbucci commentedApologies. Changed priority by accident. Just changed it back.
Comment #10
Zahak CreditAttribution: Zahak commentedNeed this feature as well. Follow..
EDIT: Hmm.. on the other hand... Just got an idea. Actually in my case it is not necessary to actually see the preview. It's mostly only important to see what area to select. Testing a bit while setting .imagefield-crop-preview { display:none; }
May not be the perfect solution, but still works a lot better than with a huge preview covering the entire browser...
EDIT2: Also seems to require a .jcrop-holder > img { top: 0; left: 0; }
(Especially left:0...)
Comment #11
mermemladeK CreditAttribution: mermemladeK commentedI'm looking for for this feature too. Any news?
Comment #12
joetsuihk CreditAttribution: joetsuihk commented#2 is working although the patch itself cannot apply
I just committed #2 to 6.x-1.x-dev http://drupalcode.org/project/imagefield_crop.git/commit/b64fca5
and this is becoming a 7.x-1.x-dev feature request