Extract multi images

pconvert -f jpg -p 1.rgb nomefile

I also tried with RGB color profiles and I get grayscale image if the profile contains all 3 RAD r, g, b.
If, on the other hand, I create a color profile with only 2 RDA (R, G) then I get a java.lang error …