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!
i was wondering if there is anyway i could upload any sized image and php can detect whether its suppose to resize it into portrait or landscape. Also i wanted to only supply for example 120px width for landscape and 100px height for potrait and php to scale the missing height or width depending on which one its is (potrait or landscape).
nice piece of script but it looks like it dont let you choose the width size and auto size the height depending on potrait and landscape upload i need to be able to either set the width or height and the one left blank auto sizes....unless i'm wrong.
No it doesnt, but you can simply work it out yourself. The method accepts the width and height of the thumbnail you want to create, so just change it to work out the ratio of the current image, and then resize accordingly.