Lines Matching refs:tempfile

290 			$tempfile = $this->cache->tempFilename('_tempImgPNG' . md5($file) . random_int(1, 10000) . '.jpg');
295 return $this->imageError($file, $firsttime, 'Error creating temporary file (' . $tempfile . ') when using GD library to parse WEBP image');
298 @imagejpeg($im, $tempfile);
299 $data = file_get_contents($tempfile);
301 unlink($tempfile);
344 $tempfile = $this->cache->tempFilename('_tempImgPNG' . md5($file) . random_int(1, 10000) . '.png');
346 $check = @imagepng($im, $tempfile);
348 return $this->imageError($file, $firsttime, 'Error creating temporary file (' . $tempfile . ') when using GD library to parse JPG(CMYK) image');
350 $info = $this->getImage($tempfile, false);
352 return $this->imageError($file, $firsttime, 'Error parsing temporary file (' . $tempfile . ') created with GD library to parse JPG(CMYK) image');
355 unlink($tempfile);
589 $tempfile = $this->cache->tempFilename('_tempImgPNG' . md5($file) . random_int(1, 10000) . '.png');
695 $check = @imagepng($imgplain, $tempfile);
697 return $this->imageError($file, $firsttime, 'Failed to create temporary image file (' . $tempfile . ') parsing PNG image with alpha channel (' . $errpng . ')');
713 $info = $this->getImage($tempfile, false);
714 unlink($tempfile);
717 return $this->imageError($file, $firsttime, 'Error parsing temporary file (' . $tempfile . ') created with GD library to parse PNG image');
773 $check = @imagepng($im, $tempfile);
775 return $this->imageError($file, $firsttime, 'Failed to create temporary image file (' . $tempfile . ') parsing PNG image (' . $errpng . ')');
778 $info = $this->getImage($tempfile, false);
779 unlink($tempfile);
781 return $this->imageError($file, $firsttime, 'Error parsing temporary file (' . $tempfile . ') created with GD library to parse PNG image');
909 $tempfile = $this->cache->tempFilename('_tempImgPNG' . md5($file) . random_int(1, 10000) . '.png');
913 if (!is_writable($tempfile)) {
928 $check = @imagepng($im, $tempfile);
930 return $this->imageError($file, $firsttime, 'Error creating temporary file (' . $tempfile . ') when using GD library to parse GIF image');
932 $info = $this->getImage($tempfile, false);
934 return $this->imageError($file, $firsttime, 'Error parsing temporary file (' . $tempfile . ') created with GD library to parse GIF image');
937 unlink($tempfile);
1065 $tempfile = $this->cache->tempFilename('_tempImgPNG' . md5($file) . random_int(1, 10000) . '.png');
1071 $check = @imagepng($im, $tempfile);
1074 return $this->imageError($file, $firsttime, 'Error creating temporary file (' . $tempfile . ') when using GD library to parse unknown image type');
1077 $info = $this->getImage($tempfile, false);
1080 unlink($tempfile);
1083 return $this->imageError($file, $firsttime, 'Error parsing temporary file (' . $tempfile . ') created with GD library to parse unknown image type');
1320 $tempfile = '_tempImgPNG' . md5($data) . random_int(1, 10000) . '.png';
1323 $this->mpdf->images[$tempfile] = $minfo;