Lines Matching refs:extension
18 protected $extension; variable in splitbrain\\slika\\GdAdapter
44 if ($this->extension !== 'jpeg') {
92 if ($this->extension == 'png' && function_exists('imagesavealpha')) {
126 public function save($path, $extension = '') argument
128 if ($extension === 'jpg') {
129 $extension = 'jpeg';
131 if ($extension === '') {
132 $extension = $this->extension;
134 $saver = 'image' . $extension;
136 throw new Exception('Can not save image format ' . $extension);
139 if ($extension == 'jpeg') {
166 $this->extension = image_type_to_extension($info[2], false);
167 $creator = 'imagecreatefrom' . $this->extension;
169 throw new Exception('Can not work with image format ' . $this->extension);
196 if (function_exists('imagecreatetruecolor') && $this->extension != 'gif') {
207 if ($this->extension == 'png' && function_exists('imagesavealpha')) {
213 if ($this->extension == 'gif') {