General Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingGeneral Programming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old November 4th, 2003, 07:54 PM
thecharking thecharking is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Posts: 187 thecharking User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Send a message via AIM to thecharking
resize pics vs reg pics

okay I have a site which I have users uploading pics too, and I am making the width of thumbs 70 and width of reg pics 100. Is it better to resize them with php (this can be done right?). If a user uploaded a pic at 700 px width, this would probably take a while to load, but I was jsut thinking I don't want to have to do any resizing... any thoughts? what do others do?
__________________
hey it's the CHARKING

Reply With Quote
  #2  
Old November 5th, 2003, 08:21 AM
dhouston's Avatar
dhouston dhouston is offline
Contributing User
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: May 2003
Location: Tennessee
Posts: 1,355 dhouston User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to dhouston
Probably the best option is to resize on upload so that the people browsing your site don't have to load gargantuan files squeezed down into the maximum dimensions you want displayed. To resize in PHP, you'd need to look into using the GD libraries, which can be a pain to compile into PHP if memory serves me aptly. Seems like there's a tutorial here on the site about using GD to make a photo album. That might be a good place for you to start, so that you can determine whether or not this is something you'd like to bite off.

Reply With Quote
  #3  
Old November 5th, 2003, 11:25 AM
MadCowDzz's Avatar
MadCowDzz MadCowDzz is offline
I'm Internet Famous
Dev Articles Frequenter (2500 - 2999 posts)
 
Join Date: Jan 2003
Location: Toronto, Canada
Posts: 2,890 MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 1 Week 16 h 14 m 9 sec
Reputation Power: 8
The newer releases of PHP (4.3+) come with the GD Libraries installed, its just a matter of enabling them in the PHP ini file.

If i remember correctly it was just a matter of uncommenting the line ;extension=php_gd.dll in the php ini (take the semicolon away)...

FrankieShakes handles image resizing in his photo gallery article, http://www.devarticles.com/art/1/642

Reply With Quote
  #4  
Old November 5th, 2003, 11:13 PM
thecharking thecharking is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Posts: 187 thecharking User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Send a message via AIM to thecharking
thyanks guys ill check that out fo sho

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingGeneral Programming Help > resize pics vs reg pics


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT