15 imagejpeg($this->
image->getCore(),
null, $this->quality);
16 $this->
image->mime = image_type_to_mime_type(IMAGETYPE_JPEG);
17 $buffer = ob_get_contents();
31 $resource = $this->
image->getCore();
32 imagealphablending($resource,
false);
33 imagesavealpha($resource,
true);
34 imagepng($resource,
null, -1);
35 $this->
image->mime = image_type_to_mime_type(IMAGETYPE_PNG);
36 $buffer = ob_get_contents();
50 imagegif($this->
image->getCore());
51 $this->
image->mime = image_type_to_mime_type(IMAGETYPE_GIF);
52 $buffer = ob_get_contents();
65 throw new \Intervention\Image\Exception\NotSupportedException(
66 "TIFF format is not supported by Gd Driver."
77 throw new \Intervention\Image\Exception\NotSupportedException(
78 "BMP format is not supported by Gd Driver."
89 throw new \Intervention\Image\Exception\NotSupportedException(
90 "ICO format is not supported by Gd Driver."
101 throw new \Intervention\Image\Exception\NotSupportedException(
102 "PSD format is not supported by Gd Driver."