I have the following problem. User can upload image, and I would like to display the image about 5 times smaller, without to cause distortion on the image. That is I would like to avoid. How can I find the width and height of the original image and divide it by 5?
I use php, forgot to mention that detail.
Regards,Zoran
From the sounds of your comments, you are looking for something simpler than the answers you are getting. Have you tried
getimagesize? http://php.net/manual/en/function.getimagesize.phpYou can do something like this:
This method also has the advantage of not having to rely on an image library like GD or anything.