function image($img, $x, $y, $w, $h, $resolution = "normal") {

//***		if ($img_type == 'gif') {
//			$img_url = $this->_convert_gif_to_png($img_url);
//			$img_type = 'png';
//		}
		$path_parts = pathinfo($img);
		$img_url = $img;
		$img_type = strtolower($path_parts['extension']);
		if ($img_type == 'gif') {
			$img_url = $this->_convert_gif_to_png($img_url);
			$img_type = 'png';
		}
		$this->_pdf->Image($img_url, $x, $y, $w, $h, $img_type);
	}
function image($img, $x, $y, $w, $h, $resolution = "normal") {

//***		if ($img_type == 'gif') {
//			$img_url = $this->_convert_gif_to_png($img_url);
//			$img_type = 'png';
//		}
		$path_parts = pathinfo($img);
		$img_url = $img;
		$img_type = strtolower($path_parts['extension']);
		if ($img_type == 'gif') {
			$img_url = $this->_convert_gif_to_png($img_url);
			$img_type = 'png';
		}
		$this->_pdf->Image($img_url, $x, $y, $w, $h, $img_type);
	}
function image ( $ img , $ x , $ y , $ w , $ h , $ resolution = "normal" ) { //***		if ($img_type == 'gif') { //			$img_url = $this->_convert_gif_to_png($img_url); //			$img_type = 'png'; //		} $ path_parts = pathinfo ( $ img ) ; $ img_url = $ img ; $ img_type = strtolower ( $ path_parts [ 'extension' ] ) ; if ( $ img_type == 'gif' ) { $ img_url = $ this -> _convert_gif_to_png ( $ img_url ) ; $ img_type = 'png' ; } $ this -> _pdf -> Image ( $ img_url , $ x , $ y , $ w , $ h , $ img_type ) ; }
Add an image to the pdf.

The image is placed at the specified x and y coordinates with the
given width and height.

@param string $img_url the path to the image
@param string $img_type the type (e.g. extension) of the image
@param float $x x position
@param float $y y position
@param int $w width (in pixels)
@param int $h height (in pixels)
Add an image to the pdf .