GD Library only 256 collors?
Moderator: General Moderators
GD Library only 256 collors?
Hi, I posted a while back that I was having some trouble with copying a PNG to a JPEG, and I heard that when using the GD library it converts images to to 256 collors, losing some of the quality. I am wondering is there a formula or a way to work around this so it will not lose any of the quality?
-
pootergeist
- Forum Contributor
- Posts: 273
- Joined: Thu Feb 27, 2003 7:22 am
- Location: UK
1.6.2 was restricted to a 256 indices palette in most functions
1.8.4 could preserve the palette in imagecreatefrom... calls though was still restricted to 256 colours when using imagecreate
versions of 2.0.0 and above can process truecolour with the imagecreatetruecolor and imagecopyresampled combo along with imagecreatefromjpeg and partially imagecreatefrompng
versionss 2.0.4 and 2.0.9 (if I remember rightly) fixed a few glitches in reading png images.
gif though is restricted to 256 indices no matter what.
1.8.4 could preserve the palette in imagecreatefrom... calls though was still restricted to 256 colours when using imagecreate
versions of 2.0.0 and above can process truecolour with the imagecreatetruecolor and imagecopyresampled combo along with imagecreatefromjpeg and partially imagecreatefrompng
versionss 2.0.4 and 2.0.9 (if I remember rightly) fixed a few glitches in reading png images.
gif though is restricted to 256 indices no matter what.