converting RGB to HLS in PerlMagick

PerlMagick is an object-oriented Perl interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning PerlMagick.
Posts: 3
Joined: 2016-03-09T11:30:12-07:00
Authentication code: 1151

converting RGB to HLS in PerlMagick

Post 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;
but it's not working.
what is the approach to do that ?
thanks in advance