[SOLVED] imagecopyresampled question

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
wizzard
Forum Commoner
Posts: 93
Joined: Thu May 16, 2002 5:36 am
Location: Belgium
Contact:

imagecopyresampled question

Post by wizzard »

Hello,

Is it possible with this function imagecopyresampled to resample an image without saving it? I need this to cut out a part to show in the thumbnails like 200px on 200px
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Post by pickle »

I believe so. When you call imagecopyresampled, it just takes the data from one image resource (not necessarily a file), and copies the requested pixels to another image resource (again, not necessarily a file).
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
wizzard
Forum Commoner
Posts: 93
Joined: Thu May 16, 2002 5:36 am
Location: Belgium
Contact:

Post by wizzard »

Thanks for the answer.
Post Reply