% gm display 'vid:s*.jpg'
gm display: Unable to open file ( high-tech prankster.jpg) [No such file or directory].
% gm display 'vid:jpg:s*.jpg'
% ls -bd *prankster*
stallman:\ high-tech\ prankster.jpg
Both of the above commands work as expected (they show a directory listing with 43 thumbnails) in ImageMagick. In GraphicsMagick, the first command does not work at all, while the second command shows a window containing 20 images (the glob was supposed to match 43). "convert" is affected by a similar bug.
When not converting to VID, the issue is not as pronounced:
% gm convert '*prankster.jpg' test.png
gm convert: Unable to open file ( high-tech prankster.jpg) [No such file or directory].
% gm convert 'jpg:*prankster.jpg' test.png
% gm convert stallman:\ high-tech\ prankster.jpg test.png
gm convert: Unable to open file ( high-tech prankster.jpg) [No such file or directory].
% gm convert jpg:stallman:\ high-tech\ prankster.jpg test.png
The first command here uses GraphicsMagick to glob the filename, and fails on the filename with the colon in. Arguably this should not happen, because there's no way to sanitize the contents of a glob expanded internally by GM, and the intent on the command line is unambiguous.
The second command works as expected.
The third command does not work, but this is expected as it could be interpreting 'stallman' as a format.
The fourth command works as expected.
That file itself is a high tech prankster!
Please see "http://en.wikipedia.org/wiki/Catch-22" for an explanation of the core problem. Out of respect for RMS, we are encouraged to invent a stallman image file format. :-)
I will see if there is something we can do. There are existing complaints that GraphicsMagick does too many file access tests, or too few, in order to try to solve this Catch-22 like problem.
Last edit: Bob Friesenhahn 2015-03-11
This problem is fixed by Mercurial changeset 14374:b7f30150aff2. Thanks for the report.