class.upload.php is a powerful and mature PHP class to manage uploaded files, and manipulate images in many ways. The script is available under a GPL license.
As you know, some pictures are so long and some are so wide. What I want is resizing image based on X if it is too wide. If it is not a wide picture but very long one, resizing it based on Y.
ten przykład też się przyda thx ...ale jest problem a wiesz jak wyliczyć stosunek proporcji? zdjęcie może być 3500x2300 i nie jest panorama lub 4500x1080 i wtedy jestReply
Re: If width larger, resize x or if height larger resize y new!
This example also be useful thx ... but the problem is and you know how to calculate the ratio of proportion? Stock Image can be 3500x2300, and is not panorama or 4500x1080 and then it isReply
Re: If width larger, resize x or if height larger resize y new!
Thank you for your inspiration. What I want was not what you told but I learned how to get original image sizes thanks to your post. What I actually want is:
As you know, some pictures are so long and some are so wide. What I want is resizing image based on X if it is too wide. If it is not a wide picture but very long one, resizing it based on Y.
Any suggestions appreciated.
a wiesz jak wyliczyć stosunek proporcji?
zdjęcie może być 3500x2300 i nie jest panorama
lub 4500x1080 i wtedy jest
and you know how to calculate the ratio of proportion?
Stock Image can be 3500x2300, and is not panorama
or 4500x1080 and then it is
I gave: $ handle-> image_y
instead of: $ handle-> image_ratio_y
Now everything is working! BIG thanks a lot! ;)
Thank you for your inspiration. What I want was not what you told but I learned how to get original image sizes thanks to your post. What I actually want is:
Thanks again,