Page 1 of 1

Resize & crop image script

Posted: Wed Oct 11, 2006 5:16 am
by Leao
Hi, I really need a script that resizes images to 530 pixels in width and their proportionate value in height. Then I need the PHP script to automatically crop the height of the image to 170 pixels before uploading the image onto the server.

Previously I've used a PHP script that checks an image's proportions and only uploads it if it is 530x170 pixels, but my client is having difficulty resizing his images to these specifications so I thought I should find a script that does it automatically.

Many, many thanks,

Leao

Re: Resize & crop image script

Posted: Wed Oct 11, 2006 9:27 am
by bokehman
Leao wrote:I need the PHP script to automatically crop the height of the image to 170 pixels before uploading the image onto the server.
PHP is a serverside language so what you are asking for is impossible. To work on a file it would first need to be uploaded to the server.