#!/usr/bin/perl -w
BEGIN
{
plan
tests
=> 10;
chdir
't'
if
-d
't'
;
use_ok (
"Image::Info"
) or
die
($@);
};
my
$i
= image_info(
"../img/test.rle"
)
||
die
(
"Couldn't read test.rle: $!"
);
is (
$i
->{Compression},
'RLE8'
,
'Compression'
);
is (
$i
->{BitsPerSample},
'8'
,
'BitsPerSample'
);
is (
$i
->{SamplesPerPixel}, 1,
'SamplesPerPixel'
);
is (
$i
->{file_media_type},
'image/bmp'
,
'image/bmp'
);
is (
$i
->{BMP_ColorsImportant}, 255,
'255 colors'
);
is (
$i
->{ColorTableSize}, 255,
'255 colors'
);
is (
$i
->{BMP_Origin}, 1,
'BMP_Origin'
);
is (
$i
->{color_type},
'Indexed-RGB'
,
'color_type'
);
is (dim(
$i
),
'64x64'
,
'dim()'
);