Page 1 of 1

Thumbnail Generator

Posted: Fri Sep 02, 2005 1:04 am
by waqas_punjabian
Hello!
Is their anyone who can solve this problem. I had tried no. of codes to create a thumbnail at the time uploading but all of them has some problems in it. Some codes stretch the image and some disturb the quality of image and there are some which hasn't this problem but only support JPEG. I need a code which not only copy image as it is in a folder but also copy a thumnail in another folder without the restriction of image type and without any problem in thumbnail's quality.

Please do this for me, I shall be thankfull to you

Waqas Nisar

Posted: Fri Sep 02, 2005 1:29 am
by feyd
Instead of writing it for you, we will help you fix the issues you have in an existing script, or direct you to alternate ones. There is a thumbnail script that was posted a while ago in the Code Snippets board.

Posted: Fri Sep 02, 2005 2:10 am
by lostinphp
ur lucky..at least u are able to generate a low quality of the thumbnails from the original image..
when i worked on it..all i got was a thumbnail which was black in color.
disgusted after many attempts to correct it.i gave it up..
so if u figure it out...do lemme know how u did it.
wud be really nice. :)

Posted: Fri Sep 02, 2005 3:06 am
by phpdevuk
lol @ black image, I've had that problem before. Its actually quite easy to make thumbnails using the image functions of php which use the GD library. One interesting thing to note is that the quality of the image at least in dpi is very difficult to control as its always something like 72dpi I believe.

I have some code I use for doing it, but its not the most tidy.

Posted: Fri Sep 02, 2005 9:05 am
by s.dot
the black images usually have something to do with the file name and gd cannot copy the image