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')) {
148 public function save($path, $extension = '') argument
150 if ($extension === 'jpg') {
151 $extension = 'jpeg';
153 if ($extension === '') {
154 $extension = $this->extension;
156 $saver = 'image' . $extension;
158 throw new Exception('Can not save image format ' . $extension);
161 if ($extension == 'jpeg') {
188 $this->extension = image_type_to_extension($info[2], false);
189 $creator = 'imagecreatefrom' . $this->extension;
191 throw new Exception('Can not work with image format ' . $this->extension);
218 if (function_exists('imagecreatetruecolor') && $this->extension != 'gif') {
229 if ($this->extension == 'png' && function_exists('imagesavealpha')) {
235 if ($this->extension == 'gif') {