
Said Bakr - 2007-05-20 20:12:01
They only three simple steps to get resized image:
1- tn = new thumbnail("/photos/big.jpg");
2- tn->size_width(200); //set the width of the small image.
3- tn->save("/tns/small.jpg");
That's all
It keep the image's proportion.
The most important it does not use copy() function in saving the file because some web hosts disallow copy() functionality in order to security.