in reply to Re: Reading an image palette
in thread Reading an image palette

Hmm.. Yeah.. I'm not getting a return value on Identify().. At all.

Replies are listed 'Best First'.
Re^3: Reading an image palette
by zentara (Cardinal) on Sep 28, 2008 at 13:04 UTC
    What do you want returned? Identify prints it's output to the terminal. If you want to capture the output for regexing, run the c command thru backticks or a piped open.
    #my $return = `identify -verbose $file`; #print $return; my $pid = open(my $fh,"identify -verbose $file |"); while(<$fh>){print }

    I'm not really a human, but I play one on earth Remember How Lucky You Are

      I thought my post made it very clear that's just what I was already doing- Looking back at it, I made a poor job of stating that.

      zentara, you must see my confusion with the fact that Identify() method specifically outputs to (STDERR? Or tty?). I guess this would be the most 'funny' thing I've ever seen Image::Magick do. That's saying a lot.

      I mean, really? Method Identify().. so that it may output to the tty (must be STDERR) exactly what cli identify would do? Really? Let's just put in a method called 'Trasparentize' that prints empty strings to "QWERTY"..

      Thanks for the piped open example.