PNG nach JPG

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • PNG nach JPG

    Hallo,

    ich habe ein Script um PNGs nach JPGs umzuwandeln.

    Problem ist nur das bei der Umwandelung die Ränder bei linien ziemlich unsauber werden.

    PHP Code:
            header("Content-type: image/png");
            
    $grafik=ImageCreateFromPNG("cmssystem/fondsdaten/grafik.png");
            
    $grafik2=imagecreatetruecolor(210,155);
            
    imagecopyresized ($grafik2,$grafik,0,0,0,0,210,155,210,155);
            
    imagejpeg($grafik2);
            
    imagedestroy($grafik2); 
    Wie kann ich es hin bekommen das es saubere Ränder gibt?
    Attached Files

  • #2
    Code:
    int imagejpeg  ( resource $im  [, string $filename  [color=red][, int $quality  ]][/color] )

    Comment


    • #3
      Benutze imagecopyresampled statt imagecopyresized!
      hopka.net!

      Comment


      • #4
        Lieber sogar noch imagecopy, wenn du eh keine Größenveränderung vornimmst!

        Comment

        Working...
        X