Hi All,
I have a problem i simply havent been able to work out. Ive been to hotscripts and the imagemagick website but cant find any info on it anywhere. So hoping someone could help me.
What i have is a site where users come and upload photos.
I have my script set up so that it generates a thumbnail from the uploaded image - by doing a "convert geometry -200" on the image - using imagemagick.
However the other day someone uploaded a photo in portrait format which mucked up the scheme (something i didnt think of).
So, what i want to do is have it resize the image based on it dimensions.
If the image is wider than it is taller then id want to have it convert the width to 200 pixels. Alternatively if the image is higher than it is wider, then i want to have it convert the height to 200 pixels.
im assuming it would be an if statement of some sort in the PHP, but hoping someone could point me in the right direction.
Many thanx in advance....
Regards
Dave