OT: Need a PHP Guru who's good with images
I hope one of you guys here can help me, I'd be most grateful.
I've got a bit of code that I've written/stripped from somewhere and I need it to do the following:
Upload jpg to server
check orientaiton (landscape or portrait)
if portrait resize to 240 x 320
if landscape resize to 320 x 240
ATM it uploads ok, resizes anything to 320 x whatever ratio, consequently portrait images are deeper than landscape ones.
it then updates the table.
So the only problem I have is this portrait/landscape resize depending on code.
Anyone help me out? I really need someone to point me out the error of my ways! So please either PM me or mail me at chewiee 2004 | my4x4,co,uk