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

Low qualidade GD

P: n/a
Hello!

I'm using PHP Version 4.3.3RC5-dev with GD Version bundled (2.0.15
compatible) to generated some graphics based on mysql data and to my
surprise when I use the GD function imageline($im, $x1, $y1, $x2, $y2,
$cl); (with $cl being the collorallocated via function) the line is
draw dirtying the image ($im), making some extra pixels around the
background. I've removed my jpeg background and the problem still the
same. It's something like when we zoom in too much and got some block
pixels with "random" colors. I don't know what to do. If someone want
to help me I can send two little .jpg (each 20kb) showing the problem.
I'm wondering to use only 16 colors pics (I don't know how to create
it with only 16 colors (4bits?)) to see if I can "fool" the imageline
to avoid extra dirty pixels... help me please!

Thank you for your attention,
Baruch Spinoza.
Jul 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
sp***@terra.com.br (baruch) wrote in message news:<3a**************************@posting.google. com>...
Hello!

I'm using PHP Version 4.3.3RC5-dev with GD Version bundled (2.0.15
compatible) to generated some graphics based on mysql data and to my
surprise when I use the GD function imageline($im, $x1, $y1, $x2, $y2,
$cl); (with $cl being the collorallocated via function) the line is
draw dirtying the image ($im), making some extra pixels around the
background. I've removed my jpeg background and the problem still the
same. It's something like when we zoom in too much and got some block
pixels with "random" colors. I don't know what to do. If someone want
to help me I can send two little .jpg (each 20kb) showing the problem.
I'm wondering to use only 16 colors pics (I don't know how to create
it with only 16 colors (4bits?)) to see if I can "fool" the imageline
to avoid extra dirty pixels... help me please!

Thank you for your attention,
Baruch Spinoza.


Yeah, please send me the images and the code!
Email to su**********@yahoo.com
Jul 17 '05 #2

P: n/a
"baruch" <sp***@terra.com.br> wrote in message
news:3a**************************@posting.google.c om...
Hello!

I'm using PHP Version 4.3.3RC5-dev with GD Version bundled (2.0.15
compatible) to generated some graphics based on mysql data and to my
surprise when I use the GD function imageline($im, $x1, $y1, $x2, $y2,
$cl); (with $cl being the collorallocated via function) the line is
draw dirtying the image ($im), making some extra pixels around the
background. I've removed my jpeg background and the problem still the
same. It's something like when we zoom in too much and got some block
pixels with "random" colors. I don't know what to do. If someone want
to help me I can send two little .jpg (each 20kb) showing the problem.
I'm wondering to use only 16 colors pics (I don't know how to create
it with only 16 colors (4bits?)) to see if I can "fool" the imageline
to avoid extra dirty pixels... help me please!


Sounds me to like JPEG artifacts. Try saving the file as a PNG.
Jul 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.