#166 "cat x.gif | gm convert -[2] out.jpg" argument parsing error


When piping image data into "gm convert" and specfying the frame index to extract using the same syntax as in the FAQ but with a "-" instead of the source image file name, then gm fails with this error:
gm convert: Unrecognized option (-[0]).

Based on the FAQ example, this is how my code using ImageMagick converted image data:
cat Image.gif | gm convert "-[0]" first.gif

FAQ link:


  • Bob Friesenhahn

    Bob Friesenhahn - 2011-08-04

    This works for me with GraphicsMagick 1.3.12. There were indeed a number of past releases in which this syntax was not working. What version are you using?

  • cmanley666

    cmanley666 - 2011-08-04

    Thanks. I'm using 1.3.5 on Ubuntu 10.04. Perhaps a short note about the version in the FAQ can clear that up.

  • Bob Friesenhahn

    Bob Friesenhahn - 2011-08-04

    I don't know exactly which GraphicsMagick versions work and which ones don't. I do know that it was not working in 1.3.11 and it works in 1.3.12. However, it may very well have been working in many other release versions. There is now a test case to make sure that it continues working.

    Ubuntu is not doing you any favors by offering such an antique version.

  • Bob Friesenhahn

    Bob Friesenhahn - 2011-08-04
    • status: open --> closed-works-for-me

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks