Page 1 of 1

converting RGB to HLS in PerlMagick

Posted: 2016-05-29T08:29:39-07:00
by lulu116
hello I'm trying to do the equivalent of this command :
convert ima.jpg -colorspace HSV -separate tmp_separate_%d.gif
in Perl

I tried this :
$ima = Image::Magick->new;
$ima->Read("ima.jpg");
$ima->Quantize(colorspace=>'HSV');
$ima->Separate(channel=>'All');
$ima->Write("tmp_separate_%d.gif");
but it's not working.
what is the approach to do that ?
thanks in advance
luc