Hi
all
I am facing a problem in storing the thumbnail generated using the GD Bundle
the
imagejpeg($image,"/photos/thumb/thumb1.jpg",7);
is not creating the thumb image file
I am using Redhat 9 os
I feel that the default permission of the directory has to be changed
can any one plz tell what may be the problem
PHP and GD -> Related problem
Moderator: General Moderators
-
pootergeist
- Forum Contributor
- Posts: 273
- Joined: Thu Feb 27, 2003 7:22 am
- Location: UK
call the file in a browser and tell us the parse error return.
If it is a permission denied then chmod the /thumb/ directory to allow write and execute at the least.
Also - increase the third parameter of the imagejpeg call to somewhere in the 80-90 region as 7 will not create a full image.
Anything below about 40(%) quality will result in the lower part of the image being reduced to grey blocks due to the composer running out of filesize before completion. I tend toward 85 or 90 for thumbnails as a happy balance of quality vs filesize.
If it is a permission denied then chmod the /thumb/ directory to allow write and execute at the least.
Also - increase the third parameter of the imagejpeg call to somewhere in the 80-90 region as 7 will not create a full image.
Anything below about 40(%) quality will result in the lower part of the image being reduced to grey blocks due to the composer running out of filesize before completion. I tend toward 85 or 90 for thumbnails as a happy balance of quality vs filesize.
-
pootergeist
- Forum Contributor
- Posts: 273
- Joined: Thu Feb 27, 2003 7:22 am
- Location: UK