Forum Moderators: coopster

Message Too Old, No Replies

Uploading and resizing an Image with PHP

         

Justus

3:45 am on Jun 23, 2006 (gmt 0)

10+ Year Member



Hi. I was wondering how you resize an image using PHP. What I would like to know how to do is have it make a copy of an image, and resize the copy of the image to a set height (say, 100px), and have the width follow, maintaing proportions. Thanks :)

eelixduppy

3:59 am on Jun 23, 2006 (gmt 0)



This can be done with various image functions [us3.php.net] in the GD Library [boutell.com].

There are many examples here at WebmasterWorld on resizing images. Here are just a few real quick, but a simple search will provide more:

Hope this helps! Good luck

[edited by: coopster at 2:01 pm (utc) on June 23, 2006]
[edit reason] linked up reference [/edit]