By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
428,853 Members | 2,144 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 428,853 IT Pros & Developers. It's quick & easy.

image quality (using GD library)

P: n/a
Hi,
I use GD library to generate images from photographs, approx this code :
$image_dst =
imagecreatetruecolor($this->image_dst_x, $this->image_dst_y);
imagecopyresized($image_dst, $image_src, 0, 0, 0, 0,
$this->image_dst_x, $this->image_dst_y, $this->image_src_x,
$this->image_src_y);
$result = @imagejpeg ($image_dst,
$this->file_dst_pathname,100);

but...
- generated image size is larger than the original photo's one
- generated image quality is rather bad

So I think I'm doing something wrong, but don't know what...
Thanks for any help !

Thanks also for telling me if there is a place (newsgroup) to specifically
discuss about GD library, I didn't find any on Boutell's site.
Jul 17 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a

"Christophe Cerbourg" wrote

you can view the source code of this script.

http://www.sephiroth.it/file_detail.php?id=131

bye Daniel
http://www.gizax.it
Jul 17 '05 #2

P: n/a
> you can view the source code of this script.

http://www.sephiroth.it/file_detail.php?id=131


thanks !
Jul 17 '05 #3

P: n/a
Also might try resampling the image. The file is likely larger because
you save it with 100% quality (even if the original file is only 75%)
which can increase the size dramatically in some cases...

Jul 17 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.