Lines Matching refs:type

161 		$type = null;
173 $type = $v[1];
224 $type = $this->guesser->guess($data);
231 $type = $this->guesser->guess($data);
234 if ((!$data || !$type) && function_exists('curl_init')) { // mPDF 5.7.4
237 $type = $this->guesser->guess($data);
241 if ((!$data || !$type) && !ini_get('allow_url_fopen')) { // only worth trying if remote file and !ini_get('allow_url_fopen')
244 $type = $this->guesser->guess($data);
253 if ($type === null) {
254 $type = $this->guesser->guess($data);
257 if (($type === 'wmf' || $type === 'svg') && !$allowvector) {
262 if ($type === 'svg') {
275 $info['type'] = 'svg';
282 if ($type === 'webp') { // Convert webp images to JPG and treat them as such
303 $type = 'jpeg';
308 if ($type === 'jpeg' || $type === 'jpg') {
356 $info['type'] = 'jpg';
370 // Convert to CMYK image stream - nominally returned as type='png'
377 // Convert to Grayscale image stream - nominally returned as type='png'
414 $info = ['w' => $a[0], 'h' => $a[1], 'cs' => $a[2], 'bpc' => $a[3], 'f' => 'DCTDecode', 'data' => $data, 'type' => 'jpg', 'ch' => $channels, 'icc' => $icc];
434 if ($type === 'png') {
487 // incl. single-color tarnsparency, depending which type of handling occurs later
547 // Convert to CMYK image stream - nominally returned as type='png'
557 // Convert to Grayscale image stream - nominally returned as type='png'
724 $info['type'] = 'png';
787 $info['type'] = 'png';
813 $type = substr($data, $p, 4);
815 if ($type === 'PLTE') {
820 } elseif ($type === 'tRNS') {
835 } elseif ($type === 'IDAT') {
839 } elseif ($type === 'iCCP') {
858 } elseif ($type === 'IEND') {
860 } elseif (preg_match('/[a-zA-Z]{4}/', $type)) {
881 $info['type'] = 'png';
899 } elseif ($type === 'gif') { // GIF
939 $info['type'] = 'gif';
1001 $info['type'] = 'gif';
1010 } elseif ($type === 'bmp') {
1029 } elseif ($type === 'wmf') {
1046 $info['type'] = 'wmf';
1062 return $this->imageError($file, $firsttime, 'Error parsing image file - image type not recognised, and not supported by GD imagecreate');
1074 return $this->imageError($file, $firsttime, 'Error creating temporary file (' . $tempfile . ') when using GD library to parse unknown image type');
1083 return $this->imageError($file, $firsttime, 'Error parsing temporary file (' . $tempfile . ') created with GD library to parse unknown image type');
1086 $info['type'] = 'png';
1097 return $this->imageError($file, $firsttime, 'Error parsing image file - image type not recognised');
1308 $info = ['w' => $w, 'h' => $h, 'cs' => $targetcs, 'bpc' => 8, 'f' => 'FlateDecode', 'data' => $imgdata, 'type' => 'png',
1315 $minfo = ['w' => $w, 'h' => $h, 'cs' => 'DeviceGray', 'bpc' => 8, 'f' => 'FlateDecode', 'data' => $mimgdata, 'type' => 'png',