Home / Internet & Networking / Web design / PHP Resize image
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] - (Bottom) Print
Author Topic: PHP Resize image  (Read 475 times)
yanng1
Topic Starter
Beginner



Posts: 61


« on: November 10, 2009, 12:06:50 PM »

My client wanted a photo album- i built it in PHP and SQL.  It is sweet and small BUT- the administrator at client-side, is uploading photos of about 2MB.   Hence, when a view looks at the photo gallery, the load time is painful. 

I would like to solve this problem using this approach:
1) Still let users upload these large pictures.
2) Use PHP to shrink the photos down 50% once they are on the server.

I don't know how to reduce and images ACTUAL size.  I don't mean Scale, to be clear.
does anyone here know?
IP logged
Bannana97
Intermediate



Posts: 145



Owner of HerbertsWorld Corporation

HerbertsWorld - Free Websites
« Reply #1 on: November 13, 2009, 06:54:24 AM »

Have a look at http://us.php.net/manual/en/function.imagecopyresized.php
IP logged

Thanks
Bannana97
Pages: [1] - (Top) Print 
Home / Internet & Networking / Web design / PHP Resize image « previous next »
 


Login with username, password and session length

Old Forum Search | Forum Rules
Copyright © 2010 Computer Hope ® All rights reserved.
Powered by SMF 2.0 RC3 | SMF © 2006–2010, Simple Machines LLC
Page created in 0.073 seconds with 20 queries.