public function Image($file, $x = null, $y = null, $w = 0, $h = 0, $type = '', $link = '')
    {
        if (preg_match("/\.png$/i", $file) || strtolower($type) == "png") {
            $file = $this->fixInterlacedPNG($file);

            // This may return a temp without a png extension
            $type = "png";
        }

        return parent::Image($file, $x, $y, $w, $h, $type, $link);
    }
public function Image($file, $x = null, $y = null, $w = 0, $h = 0, $type = '', $link = '')
    {
        if (preg_match("/\.png$/i", $file) || strtolower($type) == "png") {
            $file = $this->fixInterlacedPNG($file);

            // This may return a temp without a png extension
            $type = "png";
        }

        return parent::Image($file, $x, $y, $w, $h, $type, $link);
    }
public function Image ( $ file , $ x = null , $ y = null , $ w = 0 , $ h = 0 , $ type = '' , $ link = '' ) { if ( preg_match ( "/\.png$/i" , $ file ) || strtolower ( $ type ) == "png" ) { $ file = $ this -> fixInterlacedPNG ( $ file ) ; // This may return a temp without a png extension $ type = "png" ; } return parent :: Image ( $ file , $ x , $ y , $ w , $ h , $ type , $ link ) ; }
Override FPDF's Image method to handle interlaced PNGs

@see FPDF::Image()
Override FPDF s Image method to handle interlaced PNGs