Forum Moderators: coopster

Message Too Old, No Replies

Resize images with ImageCreateTrueColor

         

stefansavva

2:36 am on Nov 3, 2003 (gmt 0)

10+ Year Member



Hi there,

Has anyone got a handy script that utilises the ImageCreateTrueColor function to resize a JPG to a variable amunt, keeping the image in proportion?

Thanks,

Stefan

bobnew32

11:43 am on Nov 3, 2003 (gmt 0)

10+ Year Member



Or has anyone been able to do this any other method?

coopster

12:32 pm on Nov 3, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



You will probably end up using the PHP imagecopyresampled [us3.php.net] function. There are some good User Contributed notes in the PHP Image Manual pages [us3.php.net] that should help get you started.

coopster

12:35 pm on Nov 3, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



There is also a snippet offering in this post
[webmasterworld.com...]
that may get you started. I haven't tested the code myself, you'll have to do that.

jatar_k

4:28 pm on Nov 3, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



also take a look at this
Image upload and Thumbnail Generator [webmasterworld.com]
msg #29

may help you along the way as well

stefansavva

11:01 pm on Nov 3, 2003 (gmt 0)

10+ Year Member



Thank you all for the pointers..