thumb nail and gd2 issue?
Posted: Fri Apr 14, 2006 11:53 am
i have a photo galery in which currently i am uploading a thumbnail and larger version of the same photo separately to a folder...
i am displaying thumbnail and linking to big picture...
i came across a small code phpThumb function which is very easy to use..but it uses gd2.dll
i am new to php so
if i use that funcion i am able to make thumbnail of a single picture..but before using it in real web(i have tested in localhost) ,i have some ?s
1)what actually is gd2...it says extension..in localhost i edited php main file to activate it but in real web where and how should i activate it...does web host provide it in default?
does thumbnailing in this way effect in image downloading time?
2)what are disadvantage in using gd2?does it cause any overloads..problems?
3)should i go for gd2 option or continue uploading two file(one thumb nail and bigger one of it)
4)is there any better way to make thumbnail of uploaded image..any other...?
thanks
notes
i am displaying thumbnail and linking to big picture...
i came across a small code phpThumb function which is very easy to use..but it uses gd2.dll
i am new to php so
if i use that funcion i am able to make thumbnail of a single picture..but before using it in real web(i have tested in localhost) ,i have some ?s
1)what actually is gd2...it says extension..in localhost i edited php main file to activate it but in real web where and how should i activate it...does web host provide it in default?
does thumbnailing in this way effect in image downloading time?
2)what are disadvantage in using gd2?does it cause any overloads..problems?
3)should i go for gd2 option or continue uploading two file(one thumb nail and bigger one of it)
4)is there any better way to make thumbnail of uploaded image..any other...?
thanks
notes
Code: Select all
Call phpThumb() just like you would a normal image. //
// Example: <IMG SRC="phpThumb.php?src=/image.jpg&w=100"> //
// (see http://www.silisoftware.com for more usage examples) //
// //
// Parameters: //
// w = max width of output thumbnail in pixels //
// h = max height of output thumbnail in pixels //
// f = output image format ('jpeg', 'png', or 'gif') //
// q = JPEG compression (1=worst, 99=best, 75=default) //
// sx = left side of source rectangle (default = 0) //
// sy = top side of source rectangle (default = 0) //
// sw = width of source rectangle (default = fullwidth) //
// sh = height of source rectangle (default = fullheight)