Lines Matching refs:im1
19 $im1 = imagecreatetruecolor(75, 75);
20 $white = imagecolorallocate($im1, 255, 255, 255);
21 $red = imagecolorallocate($im1, 255, 0, 0);
22 $green = imagecolorallocate($im1, 0, 255, 0);
23 $blue = imagecolorallocate($im1, 0, 0, 255);
24 imagefilledrectangle($im1, 0, 0, 74, 74, $white);
25 imageline($im1, 3, 3, 71, 71, $red);
26 imageellipse($im1, 18, 54, 36, 36, $green);
27 imagerectangle($im1, 41, 3, 71, 33, $blue);
28 imagewebp($im1, $filename);
33 var_dump(calc_image_dissimilarity($im1, $im2) < 10e5);
35 imagewebp($im1, $filename, IMG_WEBP_LOSSLESS);
38 var_dump(calc_image_dissimilarity($im1, $im_lossless) == 0);