Rename *.jpeg files to *.jpg
These file extensions are not part of these tests and *.jpg is more common.
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.5 KiB |
|
@ -5,7 +5,7 @@ Bug #48378 (Infinite recursion due to corrupt JPEG)
|
|||
--FILE--
|
||||
<?php
|
||||
exif_read_data(
|
||||
__DIR__ . "/bug48378.jpeg",
|
||||
__DIR__ . "/bug48378.jpg",
|
||||
"FILE,COMPUTED,ANY_TAG"
|
||||
);
|
||||
?>
|
||||
|
|
|
@ -6,11 +6,11 @@ memory_limit=-1
|
|||
<?php if (!extension_loaded('exif')) print 'skip exif extension not available';?>
|
||||
--FILE--
|
||||
<?php
|
||||
exif_read_data(__DIR__ . '/bug54002_1.jpeg');
|
||||
exif_read_data(__DIR__ . '/bug54002_2.jpeg');
|
||||
exif_read_data(__DIR__ . '/bug54002_1.jpg');
|
||||
exif_read_data(__DIR__ . '/bug54002_2.jpg');
|
||||
|
||||
?>
|
||||
--EXPECTF--
|
||||
Warning: exif_read_data(bug54002_1.jpeg): Process tag(x0205=UndefinedTa): Illegal byte_count in %sbug54002.php on line %d
|
||||
Warning: exif_read_data(bug54002_1.jpg): Process tag(x0205=UndefinedTa): Illegal byte_count in %sbug54002.php on line %d
|
||||
|
||||
Warning: exif_read_data(bug54002_2.jpeg): Process tag(x0205=UndefinedTa): Illegal byte_count in %sbug54002.php on line %d
|
||||
Warning: exif_read_data(bug54002_2.jpg): Process tag(x0205=UndefinedTa): Illegal byte_count in %sbug54002.php on line %d
|
||||
|
|
Before Width: | Height: | Size: 86 KiB After Width: | Height: | Size: 86 KiB |
Before Width: | Height: | Size: 86 KiB After Width: | Height: | Size: 86 KiB |
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 3.6 KiB |
|
@ -4,8 +4,8 @@ Bug #72603 (Out of bound read in exif_process_IFD_in_MAKERNOTE)
|
|||
<?php if (!extension_loaded('exif')) print 'skip exif extension not available';?>
|
||||
--FILE--
|
||||
<?php
|
||||
var_dump(count(exif_read_data(__DIR__ . "/bug72603.jpeg")));
|
||||
var_dump(count(exif_read_data(__DIR__ . "/bug72603.jpg")));
|
||||
?>
|
||||
--EXPECTF--
|
||||
Warning: exif_read_data(bug72603.jpeg): %s in %s%ebug72603.php on line %d
|
||||
Warning: exif_read_data(bug72603.jpg): %s in %s%ebug72603.php on line %d
|
||||
int(%d)
|
||||
|
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
|
@ -10,7 +10,7 @@ if (!GD_BUNDLED && version_compare(GD_VERSION, '2.2.3', '<=')) {
|
|||
?>
|
||||
--FILE--
|
||||
<?php
|
||||
$filename = __DIR__ . DIRECTORY_SEPARATOR . 'bug67325.jpeg';
|
||||
$filename = __DIR__ . DIRECTORY_SEPARATOR . 'bug67325.jpg';
|
||||
|
||||
$im = imagecreatefromjpeg($filename);
|
||||
imagetruecolortopalette($im, 0, 256);
|
||||
|
|
Before Width: | Height: | Size: 1 KiB After Width: | Height: | Size: 1 KiB |
|
@ -7,7 +7,7 @@ if (!gd_info()['JPEG Support']) die('skip JPEG support not available');
|
|||
?>
|
||||
--FILE--
|
||||
<?php
|
||||
$filename = __DIR__ . '/bug77195.jpeg';
|
||||
$filename = __DIR__ . '/bug77195.jpg';
|
||||
@imagecreatefromjpeg($filename);
|
||||
imagecreatefromjpeg($filename);
|
||||
?>
|
||||
|
|
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB |
|
@ -122,7 +122,7 @@ if (check_box($i,$i,$i)) {
|
|||
}
|
||||
|
||||
|
||||
$im = imagecreatefromjpeg($cwd . '/conv_test.jpeg');
|
||||
$im = imagecreatefromjpeg($cwd . '/conv_test.jpg');
|
||||
imagefilledrectangle($im, 5,5, 10,10, 0xffffff);
|
||||
imagegif($im, $cwd . '/test_gif.gif');
|
||||
imagegif($im, $cwd . '/test_gif_2.gif');
|
||||
|
|
|
@ -26,7 +26,7 @@ jpeg <--> png conversion test
|
|||
echo "\n";
|
||||
|
||||
echo "JPEG to PNG conversion: ";
|
||||
echo imagepng(imagecreatefromjpeg($cwd . "/conv_test.jpeg"), $cwd . "/test_png.png") ? 'ok' : 'failed';
|
||||
echo imagepng(imagecreatefromjpeg($cwd . "/conv_test.jpg"), $cwd . "/test_png.png") ? 'ok' : 'failed';
|
||||
echo "\n";
|
||||
|
||||
echo "Generated PNG to JPEG conversion: ";
|
||||
|
|
|
@ -15,11 +15,11 @@ jpeg <--> gd1/gd2 conversion test
|
|||
$cwd = __DIR__;
|
||||
|
||||
echo "JPEG to GD1 conversion: ";
|
||||
echo imagegd(imagecreatefromjpeg($cwd . "/conv_test私はガラスを食べられます.jpeg"), $cwd . "/test私はガラスを食べられます.gd1") ? 'ok' : 'failed';
|
||||
echo imagegd(imagecreatefromjpeg($cwd . "/conv_test私はガラスを食べられます.jpg"), $cwd . "/test私はガラスを食べられます.gd1") ? 'ok' : 'failed';
|
||||
echo "\n";
|
||||
|
||||
echo "JPEG to GD2 conversion: ";
|
||||
echo imagegd2(imagecreatefromjpeg($cwd . "/conv_test私はガラスを食べられます.jpeg"), $cwd . "/test私はガラスを食べられます.gd2") ? 'ok' : 'failed';
|
||||
echo imagegd2(imagecreatefromjpeg($cwd . "/conv_test私はガラスを食べられます.jpg"), $cwd . "/test私はガラスを食べられます.gd2") ? 'ok' : 'failed';
|
||||
echo "\n";
|
||||
|
||||
echo "GD1 to JPEG conversion: ";
|
||||
|
|
|
@ -15,11 +15,11 @@ jpeg <--> gd1/gd2 conversion test
|
|||
$cwd = __DIR__;
|
||||
|
||||
echo "JPEG to GD1 conversion: ";
|
||||
echo imagegd(imagecreatefromjpeg($cwd . "/conv_test.jpeg"), $cwd . "/test_jpeg.gd1") ? 'ok' : 'failed';
|
||||
echo imagegd(imagecreatefromjpeg($cwd . "/conv_test.jpg"), $cwd . "/test_jpeg.gd1") ? 'ok' : 'failed';
|
||||
echo "\n";
|
||||
|
||||
echo "JPEG to GD2 conversion: ";
|
||||
echo imagegd2(imagecreatefromjpeg($cwd . "/conv_test.jpeg"), $cwd . "/test_jpeg.gd2") ? 'ok' : 'failed';
|
||||
echo imagegd2(imagecreatefromjpeg($cwd . "/conv_test.jpg"), $cwd . "/test_jpeg.gd2") ? 'ok' : 'failed';
|
||||
echo "\n";
|
||||
|
||||
echo "GD1 to JPEG conversion: ";
|
||||
|
|