Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Php: reducing file size of a photo, server side?

Php: reducing file size of a photo, server side?
Thread Tools
skalie
Mac Elite
Join Date: Mar 2002
Location: Clogland
Status: Offline
Reply With Quote
Nov 3, 2006, 03:48 AM
 
Is that possible?

Someone has asked me to change the maximum limit of an uploadable photo to 1mb. Since his server only has disc space of 25mb, I am expecting problems in the near future.

Is there a certain functionality, or php class that I should be trying to find with google?

TIA
     
SirCastor
Professional Poster
Join Date: Jan 2001
Location: Salt Lake City, UT USA
Status: Offline
Reply With Quote
Nov 3, 2006, 06:46 PM
 
There are a number of image manipulation binaries that can do this, they run on the server. Look into ImageMagik... (there are a few more. I can't recall them though)
2008 iMac 3.06 Ghz, 2GB Memory, GeForce 8800, 500GB HD, SuperDrive
8gb iPhone on Tmobile
     
skalie  (op)
Mac Elite
Join Date: Mar 2002
Location: Clogland
Status: Offline
Reply With Quote
Nov 4, 2006, 07:28 AM
 
.......... in combination with MagickWand for PHP looks like a perfect option.

Thank you Sir.
     
SirCastor
Professional Poster
Join Date: Jan 2001
Location: Salt Lake City, UT USA
Status: Offline
Reply With Quote
Nov 4, 2006, 09:11 AM
 
You're very welcome
2008 iMac 3.06 Ghz, 2GB Memory, GeForce 8800, 500GB HD, SuperDrive
8gb iPhone on Tmobile
     
selowitch
Mac Elite
Join Date: Nov 2003
Location: Rockville, MD
Status: Offline
Reply With Quote
Nov 17, 2006, 02:50 PM
 
I believe ImageMagick depends on gdlib, which can also be manipulated via PHP directly, althouhg using IM is probably much easier.
     
   
 
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 03:48 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,