Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

using gd library to resize an image

Status
Not open for further replies.

whirlpool6

Technical User
Sep 2, 2007
58
JP
can somebody pls tell me how to use gd lib to resize an image. i need help on this. and does the image really maintain most of its quality when using gd library to resize? pls help. i need a step by step guide on this...

thanks a lot for your help
 
generally it's ok for web use, particularly with downscaling. i have noticed degradation recently on png images though.

the appropriate functions are imagecreatetruecolor and imagecopyresampled. the manual is excellent on both and there are lots of sample code snips in this forum too. there is also a gallery script i wrote that has the functionality within it. found at the source code is available through clicking the link button at the bottom.
 
thanks for the reply...

anyway how can i use imagecopyresampled?

i have an html page and i want to put this image in an img object on the page... how can that be done?

thanks a lot,.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top