Lines Matching defs:extension
17 /** @var string the extension of the file we're working with */
18 protected $extension;
44 if ($this->extension !== 'jpeg') {
113 if ($this->extension == 'png' && function_exists('imagesavealpha')) {
147 public function save($path, $extension = '')
149 if ($extension === 'jpg') {
150 $extension = 'jpeg';
152 if ($extension === '') {
153 $extension = $this->extension;
155 $saver = 'image' . $extension;
157 throw new Exception('Can not save image format ' . $extension);
160 if ($extension == 'jpeg') {
187 $this->extension = image_type_to_extension($info[2], false);
188 $creator = 'imagecreatefrom' . $this->extension;
190 throw new Exception('Can not work with image format ' . $this->extension);
217 if (function_exists('imagecreatetruecolor') && $this->extension != 'gif') {
228 if ($this->extension == 'png' && function_exists('imagesavealpha')) {
234 if ($this->extension == 'gif') {