Page 1 of 1

Image resize module / script?

Posted: Tue Jun 10, 2008 11:05 pm
by dwinters
Anyone know of an image resize module.

I have just had users / web editor muck up a great design by uploading the wrong sized image.

I wonder if anyone has a way of getting the system to resize an image on upload along its longest side with its ratio kept

While on this subject a {content image="true"} tag would be great if it could show in the admin section a browse and upload button for an image - this coupled with the above would stop users mucking up the design. Anything like this? Or is it planned for 2.0?

Thanks

Dan

Re: Image resize module / script?

Posted: Wed Jun 11, 2008 6:28 am
by Dr.CSS
In the admin section you can upload images 2 ways, Image Manager or File Manager...

If you want to restrict image size in the page content you can use CSS and specify only one measurement, width or height, and it will auto size the other, but if the image is smaller than specified size it will be upsized and it may end up looking pixilated...

Also if using too large images and changing size in CSS you may notice a slight lag in page loading...

Image manager does have the image edit feature which can resize them to your specifications but you have to do it manually...

Re: Image resize module / script?

Posted: Wed Jun 11, 2008 8:05 am
by dwinters
Thanks I guess what I am after is an on upload action that pipes into image magix engine maybe

Or a module that allows an upload content block with paramaeters to push the image through an image manipulation script on upload


Anything like these exist?




If my coding was not so rusty I might have just built one, but I am at the smarty / .sh level only



Thanks Dan

Re: Image resize module / script?

Posted: Wed Jun 11, 2008 8:39 am
by Wiedmann
Thanks I guess what I am after is an on upload action that pipes into image magix engine maybe
You can ask the author of the ImageManager Module, if he want add an "Event" to the module, which is triggered after an image upload.

(an "ugly" hack for the moment can be, to add some code to thumbs.php)