Home
last modified time | relevance | path

Searched refs:image (Results 51 – 75 of 231) sorted by relevance

12345678910

/PHP-8.1/ext/gd/tests/
H A Dimagexbm_nullbyte_injection.phpt7 $image = imagecreate(1,1);// 1px image
9 imagexbm($image, "./foo\0bar");
H A Dimagegd2_nullbyte_injection.phpt7 $image = imagecreate(1,1);// 1px image
9 imagegd($image, "./foo\0bar");
H A Dimagegd_nullbyte_injection.phpt7 $image = imagecreate(1,1);// 1px image
9 imagegd($image, "./foo\0bar");
H A Dimageinterlace_variation1.phpt11 $image = imagecreatetruecolor(100, 100);
13 var_dump(imageinterlace($image, true));
14 var_dump(imageinterlace($image));
H A Dimagebmp_nullbyte_injection.phpt11 $image = imagecreate(1,1);// 1px image
13 imagebmp($image, "./foo\0bar");
H A Dimagejpeg_nullbyte_injection.phpt14 $image = imagecreate(1,1);// 1px image
16 imagejpeg($image, "./foo\0bar");
H A Dimagepng_nullbyte_injection.phpt14 $image = imagecreate(1,1);// 1px image
16 imagepng($image, "./foo\0bar");
H A Dimagewbmp_nullbyte_injection.phpt14 $image = imagecreate(1,1);// 1px image
16 imagewbmp($image, "./foo\0bar");
H A Dimagewebp_nullbyte_injection.phpt14 $image = imagecreate(1,1);// 1px image
16 imagewebp($image, "./foo\0bar");
H A Dbug79676.phpt7 function test($image, $desc)
10 … (imagecolorat($image, imagesx($image) - 1 , imagesy($image) - 1) != 0x000000 ? 'pass' : 'fail'),
H A Dimagelayereffect_basic.phpt14 $image = imagecreatetruecolor(180, 30);
16 $layer = imagelayereffect($image, IMG_EFFECT_REPLACE);
20 test_image_equals_file(__DIR__ . '/imagelayereffect_basic.png', $image);
H A Dimagetruecolortopalette_error4.phpt15 $image = imagecreatetruecolor(50, 50);
18 fn() => imagetruecolortopalette($image, true, 0),
19 fn() => imagetruecolortopalette($image, true, -1)
H A Dbug75111.phpt2 Bug #75111 (Memory disclosure or DoS via crafted .bmp image)
7 // craft BMP image
9 $str .= pack("V", -0x120000); // offset of image data
H A Dbug49600.phpt14 $image = imagecreatetruecolor(50, 50);
15 $color = imagecolorallocate($image, 255, 255, 255);
18 $x = imagettftext($image, 32, 0, 0, 0, $color, $font, $c);
H A Dimageloadfont_invalid.phpt13 $image = imagecreatetruecolor(50, 20);
15 $black = imagecolorallocate($image, 0, 0, 0);
16 imagestring($image, $font, 0, 0, "Hello", $black);
/PHP-8.1/ext/exif/tests/
H A Dexif000.phpt11 test1.jpg is a 1*1 image that does not contain any Exif/Comment information
12 test2.jpg is the same image but contains Exif/Comment information and a
24 [MimeType] => image/jpeg
33 [UserComment] => Exif test image.
39 [Thumbnail.MimeType] => image/jpeg
H A Dexif005.phpt10 // test5.jpg is a 1*1 image that contains an Exif section with ifd = 00000009h
11 $image = exif_read_data(__DIR__.'/test5.jpg','',true,false);
12 var_dump($image['IFD0']);
H A Dexif001.phpt11 test1.jpg is a 1*1 image that does not contain any Exif/Comment information
12 test2.jpg is the same image but contains Exif/Comment information and a
30 string(10) "image/jpeg"
47 string(16) "Exif test image."
59 string(10) "image/jpeg"
H A Dexif004.phpt18 test4.jpg is a 1*1 image that contains Exif tags written by WindowsXP
20 $image = exif_read_data(__DIR__.'/test4.jpg','',true,false);
21 var_dump($image['WINXP']);
/PHP-8.1/ext/fileinfo/tests/
H A Dfinfo_file_002.phpt27 string(14) "image/x-ms-bmp"
29 string(9) "image/gif"
31 string(10) "image/jpeg"
39 string(9) "image/png"
43 string(11) "image/x-tga"
/PHP-8.1/ext/standard/tests/image/
H A Dimage_type_to_mime_type_variation2.phpt43 string(9) "image/gif"
52 string(10) "image/jpeg"
55 string(10) "image/tiff"
67 string(9) "image/gif"
/PHP-8.1/ext/pgsql/tests/
H A D18pg_escape_bytea_esc.phpt16 $image = file_get_contents(__DIR__ . '/php.gif');
17 $esc_image = pg_escape_bytea($db, $image);
24 if ($unesc_image !== $image) {
H A D18pg_escape_bytea_hex.phpt19 $image = file_get_contents(__DIR__ . '/php.gif');
20 $esc_image = pg_escape_bytea($db, $image);
27 if ($unesc_image !== $image) {
H A D18pg_escape_bytea_before.phpt13 $image = file_get_contents(__DIR__ . '/php.gif');
14 $esc_image = pg_escape_bytea($image);
24 if ($unesc_image !== $image) {
/PHP-8.1/ext/gd/libgd/
H A Dgd_xbm.c177 void gdImageXbmCtx(gdImagePtr image, char* file_name, int fg, gdIOCtx * out) in gdImageXbmCtx() argument
200 gdCtxPrintf(out, "#define %s_width %d\n", name, gdImageSX(image)); in gdImageXbmCtx()
201 gdCtxPrintf(out, "#define %s_height %d\n", name, gdImageSY(image)); in gdImageXbmCtx()
209 sx = gdImageSX(image); in gdImageXbmCtx()
210 sy = gdImageSY(image); in gdImageXbmCtx()
213 if (gdImageGetPixel(image, x, y) == fg) { in gdImageXbmCtx()

Completed in 29 milliseconds

12345678910