Forum Moderators: phranque

Message Too Old, No Replies

Automatically resize images

Client using content management - doesn't know how to resize images

         

gb_olm

3:23 pm on Aug 16, 2004 (gmt 0)

10+ Year Member



We are building content management systems that contain image uploads for our clients. Usually, they don't pose a problem for the site. However, occasionally, we do get clients that have no idea how to resize an image (pixel size and file size).

The next thing I know, I go onto a client website and there's a 2mg photo that is all pixilated!

Anyway, I know we can use code (HTML I believe) to force an image to a certain dimension, however I'm wondering if there is a way to resize and change the resolution of an image using software/freeware. This would automatically need to occur when a client uploads an image into the content management system.

Any ideas?

encyclo

3:44 pm on Aug 16, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It depends on which scripting language the CMS is built in. If you're using PHP, you can use the GD library to resize the images automatically.

Try message #29 in this thread for a good example of what you can do:

[webmasterworld.com...]

For a working example, you could also look at the "Gallery" script for photo albums:

[gallery.menalto.com...]

I don't know about other languages (ASP, ASP.NET, Perl, ColdFusion...), but I suppose there are equivalents - others may be able to fill you in with the details.

gb_olm

4:24 pm on Aug 16, 2004 (gmt 0)

10+ Year Member



Yep, we're using PHP and MySQL (sorry for leaving that out).

=)