Image resize module / script?

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
dwinters
Forum Members
Forum Members
Posts: 53
Joined: Mon Mar 17, 2008 12:46 pm

Image resize module / script?

Post 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
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Image resize module / script?

Post 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...
dwinters
Forum Members
Forum Members
Posts: 53
Joined: Mon Mar 17, 2008 12:46 pm

Re: Image resize module / script?

Post 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
Wiedmann
Forum Members
Forum Members
Posts: 233
Joined: Wed Mar 26, 2008 1:49 am

Re: Image resize module / script?

Post 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)
Post Reply

Return to “CMSMS Core”