GM display and animate pipe default
Bob Friesenhahn <[email protected]> Wed, 2 Jan 2008 19:18:53 -0600 (CST)
| Newsgroups | gmane.comp.video.graphicsmagick.tools |
|---|---|
| Message-ID | <[email protected]> |
The proper way to specify input from a pipe in GraphicsMagick is via the '-' symbol. This allows input from a pipe like: cat crap.miff | gm display - It turns out that GraphicsMagick has been using a function called isatty() on stdin to determine if the input is from a tty (and therefore not a pipe). This test is only applied when there is no input file parameter specified. It used to be reasonable to use isatty() but it seems that Gnome's application launcher does not pass this test. If the isatty() test failed, then '-' is automatically passed as the default parameter. I plan to remove this default in GraphicsMagick 1.2 so that if no file name is provided then the GUI will still successfully display its default window. Some existing scripts may require a trivial update. Should I do the same for GraphicsMagick 1.1.X? Bob ====================================== Bob Friesenhahn [email protected], http://www.simplesystems.org/users/bfriesen/ GraphicsMagick Maintainer, http://www.GraphicsMagick.org/ ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/