Is this possible?

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
robertbarzyk
Forum Newbie
Posts: 19
Joined: Tue Oct 06, 2009 4:12 pm

Is this possible?

Post by robertbarzyk »

Say i have an image which is 500px by 100px.

Could i have php crop the image from left to right from pixels 1px-100px, 101px-200px, 201px-300px, 301px-400px, 401px-500px

and output the cropped photos?

im decent with php but never worked with images in php. please help
User avatar
Darhazer
DevNet Resident
Posts: 1011
Joined: Thu May 14, 2009 3:00 pm
Location: HellCity, Bulgaria

Re: Is this possible?

Post by Darhazer »

It is possible, you have to take a look at GD functions
http://php.net/manual/en/function.imagecopy.php
Post Reply