filesystem

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
nincha
Forum Contributor
Posts: 191
Joined: Fri Mar 28, 2003 12:30 pm
Location: CA, USA

filesystem

Post by nincha »

is there a php functions that reads a .gif/.jpeg dimension and changes it???
User avatar
delorian
Forum Contributor
Posts: 223
Joined: Sun May 04, 2003 5:20 pm
Location: Olsztyn, Poland

Post by delorian »

There is one that gets the image size and dimensions - getimagesize http://php.net/manual/en/function.getimagesize.php. It returns an array with image info. I don't know if there is any function which changes the dimension of the pictures, but if you want just to resize it dynamicaly while your web page is loading, you can allways modify the information returned by the mentioned above function.
Post Reply