Low qualidade GD

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • baruch

    Low qualidade GD

    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.
  • Subhash

    #2
    Re: Low qualidade GD

    spin9@terra.com .br (baruch) wrote in message news:<3aef06e4. 0406290310.11de 7d2d@posting.go ogle.com>...[color=blue]
    > 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.[/color]

    Yeah, please send me the images and the code!
    Email to subhash_daga@ya hoo.com

    Comment

    • Chung Leong

      #3
      Re: Low qualidade GD

      "baruch" <spin9@terra.co m.br> wrote in message
      news:3aef06e4.0 406290310.11de7 d2d@posting.goo gle.com...[color=blue]
      > 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![/color]

      Sounds me to like JPEG artifacts. Try saving the file as a PNG.


      Comment

      Working...