91 switch (strtolower($this->format)) {
128 case 'image/x-bitmap':
130 case 'image/x-ms-bmp':
131 case 'image/x-win-bitmap':
132 case 'image/x-windows-bmp':
133 case 'image/x-xbitmap':
139 case 'image/vnd.microsoft.icon':
144 case 'image/vnd.adobe.photoshop':
145 $this->result = $this->processPsd();
149 throw new \Intervention\Image\Exception\NotSupportedException(
150 "Encoding format ({$format}) is not supported."
154 return $image->setEncoded($this->result);
164 $mime = $this->
image->mime ? $this->
image->mime :
'image/png';
166 return sprintf(
'data:%s;base64,%s',
168 base64_encode($this->
process($this->
image, $mime, $this->quality))
208 if ($quality < 0 || $quality > 100) {
209 throw new \Intervention\Image\Exception\InvalidArgumentException(
210 'Quality must range from 0 to 100.'