Lines Matching refs:im

284 			$im = @imagecreatefromstring($data);
286 if (!function_exists('imagewebp') || false === $im) {
292 $check = @imagewebp($im, $checkfile);
298 @imagejpeg($im, $tempfile);
300 imagedestroy($im);
341 $im = @imagecreatefromstring($data);
343 if ($im) {
345 imageinterlace($im, false);
346 $check = @imagepng($im, $tempfile);
354 imagedestroy($im);
581 $im = imagecreatefromstring($data);
582 if (!$im) {
586 $w = imagesx($im);
587 $h = imagesy($im);
614 $colorindex = imagecolorat($im, $xpx, $ypx);
645 $rgb = imagecolorat($im, $xpx, $ypx);
666 $alpha = (imagecolorat($im, $xpx, $ypx) & 0x7F000000) >> 24;
675 // imagegammacorrect() removes the alpha channel data in $im - (I think this is a bug in PHP)
677 imagegammacorrect($im, $gamma, 2.2);
692 imagecopy($imgplain, $im, 0, 0, 0, 0, $w, $h);
759 imagepalettetotruecolor($im);
766 imagegammacorrect($im, $gamma, 2.2);
769 imagealphablending($im, false);
770 imagesavealpha($im, false);
771 imageinterlace($im, false);
773 $check = @imagepng($im, $tempfile);
777 imagedestroy($im);
907 $im = @imagecreatefromstring($data);
908 if ($im) {
910 imagealphablending($im, false);
911 imagesavealpha($im, false);
912 imageinterlace($im, false);
915 $check = @imagepng($im);
926 imagedestroy($im);
928 $check = @imagepng($im, $tempfile);
936 imagedestroy($im);
1059 $im = @imagecreatefromstring($data);
1061 if (!$im) {
1067 imagealphablending($im, false);
1068 imagesavealpha($im, false);
1069 imageinterlace($im, false);
1071 $check = @imagepng($im, $tempfile);
1079 imagedestroy($im);
1110 $im = @imagecreatefromstring($data);
1114 if ($im) {
1134 $colorindex = imagecolorat($im, $xpx, $ypx);
1163 $rgb = imagecolorat($im, $xpx, $ypx);
1182 $rgb = imagecolorat($im, $j, $i);
1196 imagegammacorrect($im, $gamma_correction, 2.2);
1228 $pal = imagecolorsforindex($im, $pos);
1252 $rgb = imagecolorat($im, $j, $i);
1257 $pal = imagecolorsforindex($im, $rgb);
1329 imagedestroy($im);
1379 * $im from imagecreatefromstring will always be in bpc=8