This very handy module is so cool! Thanks Nate!
would there be a way incorporate a setting whereas
if no user input via handles has occurred,
then enable image resize filter to scale image to xwidth X xheight (thereby also initializing the lightbox/thickbox overlay)
The image resize filter seems to do its work on an image after the image resize handles have changed via user input.
Has anyone used the image resize filter to set a width and/or height to an image being posted which is not dependent upon the user input?
For example, if a user forgets to resize a 800x600 image, a way to have the image resize filter scale it down to 480x360 automatically upon publishing would be really neat. I wonder if there might be a simple solution for that.
For me the question is largely in regard to integration with the YUI WYSIWYG editor.
When using YUI i am able to use the image resize filter in posts no problem. However if the user neglects to resize the image at all i lose the nifty lightbox/thickbox overlay (Link to the original) and i also end up with an image which is too big for the post until the user gets in there to re-edit and resize.
cheers
Comments
Comment #1
quicksketchThis sounds basically the same as the won't fixed #433116: Maximum width.
Comment #2
silkscreen commentedIt certainly is,
Thank you for pointing me that direction. As a feature request it is certainly understandable why it may be counteractive to include a preset.
The large differences (and limitation) in how wysiwygs and the other image modules handle resizing images can be somewhat confusing. Among other things, the fact that the Image Resize Filter does its work 'post' wysiwyg is why your plugin is so helpful to me.
Certainly clear the best method for auto resize would be to use the wysiwyg. With FCK/IMCE i was able to accomplish a preset scale, but as i cant seem to do the same with YUI i was looking elsewhere. The suggestions on the comments you pointed me too looks like the place to be, Ill move any further comments over and post results when i get there. Thanks for your help.
Comment #3
Guide-1 commentedI've made very little code modification to add resize method...
At line 423 of image_resize_filter.module i've changed
to
and added to image_resize_filter_form this:
Maybe it will be usefull for someone... thanks for module...
Comment #4
quicksketchGuide, your patch would be better suited here: #372538: Option to scale rather than resize?. But I'm opposed to making this an option in the UI. The goal of this project is to provide better WYSIWYG capability, making the output differ from what the user sees in the WYSIWYG is counter-productive to that goal. If they stretch the image, the image should be stretched.
I'm marking this won't fix for the same reasons as #372538: Option to scale rather than resize? and #433116: Maximum width.