|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
|
#2
|
||||
|
||||
|
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.
|
|
#3
|
||||
|
||||
|
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 |
|
#4
|
|||
|
|||
|
thyanks guys ill check that out fo sho
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > resize pics vs reg pics |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|