Francesco Romani wrote:

> I can't explain this behaviour since my PERL skills are REALLY low (I'm barely
> capable of read some PERL sources), so, there is a kind perl expert out there
> that can explain me what's going on (Hey, I'm curious ;) ) and possibily
> provide a better fix?

The difference comes on how transcode is called from the Perl program. 
It's done by fork & exec, where exec() gets all collected arguments 
passed as an array. This way each element in that array is passed as a 
distinct shell-word argument to transcode (resp. is turned 1:1 into 
argv). But your

  push @colorspace_args, "-V rgb24" if ...

is turned into

  transcode "-V rgb24"

what's probably not what you expected and in particular what transcode 
doesn't like ;). It expects

  transcode "-V" "rgb24"

You achieve this by simply pushing two arguments to the array:

  push @colorspace_args, "-V", "rgb24" if ...

This way it should work as expected.

Regards,

Joern

Attachment: pgpLORWeES49I.pgp
Description: PGP signature

Reply via email to