Resize & crop image script

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Leao
Forum Commoner
Posts: 49
Joined: Mon Aug 21, 2006 8:57 pm
Location: London

Resize & crop image script

Post 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
User avatar
bokehman
Forum Regular
Posts: 509
Joined: Wed May 11, 2005 2:33 am
Location: Alicante (Spain)

Re: Resize & crop image script

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