Link to home
Start Free TrialLog in
Avatar of wood1e
wood1e

asked on

php re-size images

Hi, I have a website, where people upload their logos...unfortunatley they are all different sizes, some even huge...now I re-seize them manually...their logos are in three separate places on the website, so I can change the size of the image display. Bu the someone uploads a logo that is 150 x 250 rather than 250 x 150...so manually change sizes throughs some logos out.  so really my question is there a simple piece of PHP to auto resize? so if the logo is more horizontal than vertical it won't look to out of place?  Waffling now...lol Any help will be appreciated.
ASKER CERTIFIED SOLUTION
Avatar of Joe Wu
Joe Wu
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of wood1e
wood1e

ASKER

crickeys, thats brilliant and many thanks for sharing...unfortunatly my PHP knowledge is not good enough for this...:)

Where I have the three iamges on separate pages, I have just added in the height and size for that specific page, but as I tried to explain above, that does not take into account logos, or different proportions...Is there not something slightly more simple?

I will give it ago though :)
ok, good luck and let me know how you go and if you have any questions :)