src/bbn/file/image.php
public function display()
	{
		if ( $this->test() ){
			if ( !headers_sent() ){
				header('Content-Type: image/'.$this->ext2);
			}
			if ( class_exists('\\Imagick') ){
				echo $this->img;
				$this->img->clear();
				$this->img->destroy();
			}
			else{
				\call_user_func('image'.$this->ext2, $this->img);
				imagedestroy($this->img);
			}
		}
		return $this;
	}
public function display()
	{
		if ( $this->test() ){
			if ( !headers_sent() ){
				header('Content-Type: image/'.$this->ext2);
			}
			if ( class_exists('\\Imagick') ){
				echo $this->img;
				$this->img->clear();
				$this->img->destroy();
			}
			else{
				\call_user_func('image'.$this->ext2, $this->img);
				imagedestroy($this->img);
			}
		}
		return $this;
	}
public function display ( ) { if ( $ this -> test ( ) ) { if ( ! headers_sent ( ) ) { header ( 'Content-Type: image/' . $ this -> ext2 ) ; } if ( class_exists ( '\\Imagick' ) ) { echo $ this -> img ; $ this -> img -> clear ( ) ; $ this -> img -> destroy ( ) ; } else { \ call_user_func ( 'image' . $ this -> ext2 , $ this -> img ) ; imagedestroy ( $ this -> img ) ; } } return $ this ; }
Sends the image with Content-Type.

```php
$img = new bbn\file\image("/home/data/test/image.jpg");
$img->display();
```

@return image
Sends the image with Content - Type .