Needs review
Project:
Imagefield Crop
Version:
6.x-1.0-rc2
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
18 Jun 2009 at 12:48 UTC
Updated:
7 Dec 2011 at 12:18 UTC
Jump to comment: Most recent file
Comments
Comment #1
merto87 commentedThanks!!
Waiting for commit! ;)
Comment #2
buckley commentedJust tried it and it seems to work
Comment #3
presleyd commentedDoes not seem to work for me. I am not using Filefield sources however, just imagefield, imagefield crop and filefield insert. The option to 'Send to Text' is present using the Image with crop widget and it seems to add the image to the WYSIWYG menu. Everything would be peachy except that the cropped image doesn't seem to the one being sent up. I get the original image although it is re-sized to the dimensions that the cropped image should have been.
*edit... sorry I hadn't refreshed the page. Ooops. Working now.
Comment #4
alan d. commentedThis imagefield_extended_widget is another widget that could be added, and when D7 comes out, there are probably going to be many more.
Maybe having some hook based dynamic solution is best to ensure that this module doesn't have a depenency on any of these additional modules.
eg: something like:
This is just some food for thought, but it would prevent multiple future patches.
Comment #5
quicksketchMoving this to the new Insert module. Insert now provides hook_insert_widgets(), which can expose any CCK field to use the Insert API. I'd prefer to keep the supported modules to ImageField, FileField, and ImageCache, since all these modules have been moved to Drupal core and will need to be consistently supported in the Drupal 7 version of Insert.
Comment #6
brightboldI was just wishing for this functionality for Imagefield Crop as well, although it sounds like you're saying you're not planning to support that? If so I'd like to make another plug for that functionality - in my mind ImageField, ImageCache, Imagefield Crop, and Insert together are the image handling solution Drupal has been waiting for - my clients can upload an image, either have it sized to my specifications or allowed to resize or crop it themselves, and then place it in the body of their content.
Except that the crop-it-themselves-and-place-it-in-the-content piece doesn't work. But if it did, it would complete the perfect package. So here's hoping.
Comment #7
quicksketchI was saying that Insert won't bundle the support for imagefield_crop into it's code. ImageField Crop however can easily add support for Insert by implementing hook_insert_widgets().
Comment #8
yhager commented@quicksketch: Please move this issue to imagefield_crop queue when the Insert part is ready. I will take it from there. Thanks!
Comment #9
quicksketchSure thing yhager, I know you had a patch ready for FileField Insert for *ages*. Thanks!
Comment #10
quicksketchComment #11
mrfelton commentedjust what I need. subscribing
Comment #12
Bilmar commentedsubscribing
Comment #13
brightboldExcellent. Thanks, quicksketch and yhager!
Comment #14
elijah lynn@Yhager - When you have some time to work on this can you implement this so it also works with Image Resize Filter. It would be amazing to be able to crop the image first and then ship it to the Image Resize Filter/Insert. I have no clue how to do this but the workflow would ideally be ImageField Crop > Image Resize Filter > Insert.
This combo would be killer!
Comment #15
robby.smith commented+1 subscribing. #14 sounds like a cool idea.
Comment #16
tsvenson commented+1 This is the last box I want to tick for image support for the sites I am working on.
Comment #17
akaserer commentedthis module also works with filefield sources if you apply this patch for filefield sources :
http://drupal.org/node/495210#comment-2534276
Comment #18
scottrigbyI definitely want to keep tabs on this
Comment #19
YK85 commentedsubscribing
Comment #20
lolmaus commentedSubscribing
Comment #21
JeremyFrench commentedSubscribing, maby be able to get a patch togeth later today.
Comment #22
brightbold+1 on #14. I'd love to have this kind of seamless image editing and inline placement capability.
@JeremyFrench - My birthday's tomorrow. A patch would make a great present! ;)
Comment #23
nibblebot commentedsubscribe
Comment #24
AliciaW commentedI am having the problem where the cropped image is now displayed and I did lots of refreshing, cleared the cache, etc.
Comment #25
jthorson commentedsubscribe
Comment #26
jthorson commentedHere's a patch to add the hook_insert_widgets() function, thus providing integration with the 'Insert' module. I've successfully tested in my dev site with CKEditor, Imagefield, Imagefield_crop, Insert, and Image Resize Filter all working together.
However, 'working' doesn't necessarily mean that they're playing nice with each other ... there are a couple of gotchas. For example, the Imagefield_crop processing all takes place within the node form submission; so the crop dimensions are not known until after the form processing takes place. This results in the image being pasted into your editor with the original image dimensions, instead of your crop dimensions.
To get around this, you can set your crop area, click 'preview', and then click the 'Insert' button after the preview has been generated.
As a summary:
* This column also describes what appears in the editor on subsequent edits.
Notes:
Update: Forgot to mention ... I used the 'Original Image' setting when inserting - not very intuitive; but the imagefield_crop info gets applied against the 'original image', your mileage may vary with any other preset/setting.
Comment #27
zoo commentedIt works for me. Thank you very much!
Just added the function specified in the mentioned patch (imagefield_crop-insertmodulesupport-495206-26.patch), at the end of the "imagefield_crop.module" file.
Are there any known drawbacks? It works fine here...
Comment #28
wooody commentedThanks ZOO for your Explain , I add the code to multiupload_imagefield_widget.module for Multiupload imagefield module in /public_html/sites/all/modules/multiupload_imagefield_widget but it's not work... Any help please.
i tried also to add in /public_html/sites/all/modules/multiupload_filefield_widget
multiupload_filefield_widget
multiupload_filefield_widget.module
multiupload_imagefield_widget.module
Comment #29
zoo commented@wooody,
I'm sorry, I cannot be of any help, since the above lines were referring to the "Imagefield Crop" module, while you are trying to integrate the insert button to the "Multiupload Filefield Widget" module (which I do not use).
You may want to look for support at the "Multiupload Filefield Widget" issues section.
Good luck!
Comment #30
wooody commentedThanks ZOO , Multiupload Filefiled widget not answer .