Hi,
Iam new to this forum.
I need to find the given TIFF image is in CMYK or RGB.
Though i have checked with Image::Magick, and used:
It displays "TrueColor" and "Palette" for RGB and "ColorSeparatio n" for CMYK
Is there any specific property or method to find an image which is RGB or CMYK?
I have found 'colorspace' property ($rgborcmyk = $img->Get('colorspac e'); ), which tells Grayscale pictures also as RGB.
I have one more doubt also, if iam running this for collection of TIFF images, is there any need to redeclare object every for new image,(my $img = new Image::Magick; ) b'cos iam getting properties of previous image if undeclared every time.
OS: Windows 2000
Perl Version: 5.8.3
Thanks in Advance,
Freedolen
Iam new to this forum.
I need to find the given TIFF image is in CMYK or RGB.
Though i have checked with Image::Magick, and used:
Code:
my $img = new Image::Magick;
$img->Read("Sample.tif");
my ($type) = $img->Get("type");
print $type;
Is there any specific property or method to find an image which is RGB or CMYK?
I have found 'colorspace' property ($rgborcmyk = $img->Get('colorspac e'); ), which tells Grayscale pictures also as RGB.
I have one more doubt also, if iam running this for collection of TIFF images, is there any need to redeclare object every for new image,(my $img = new Image::Magick; ) b'cos iam getting properties of previous image if undeclared every time.
OS: Windows 2000
Perl Version: 5.8.3
Thanks in Advance,
Freedolen
Comment