Log in

View Full Version : creating a new file


AN-net
12-27-2004, 06:35 PM
how would i create a new file?

Reeve of shinra
12-27-2004, 07:48 PM
What kind of file... ?

AN-net
12-27-2004, 08:29 PM
i want to create a new gif file from another but just smaller(thumbnail)

Dean C
12-27-2004, 09:56 PM
Then why didn't you say ;). There's lots of inforation available about this online, search on google for things like 'PHP Thumbnailing', and you'll find lots of scripts to do it for you.

Zubaz
12-28-2004, 12:44 PM
check out http://us2.php.net/manual/en/ref.image.php with reference to these functions. You're going to have to read the source image's size with something like getimagesize() and then use the ratio of those dimensions to create your new dimensions.

imagecreatetruecolor
ImageCreateFromGif
ImageCopyResampled
imagegif

rake
12-29-2004, 10:16 PM
check the fetch_thumbnail_from_image function within vbulletin.