[SOLVED] Combining explicit format + filename globbing...

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
wildbug
Posts: 21
Joined: 2008-06-18T12:53:24-07:00

[SOLVED] Combining explicit format + filename globbing...

Post by wildbug »

This works:

Code: Select all

$ convert -depth 8 -size 29792x128 'rgb:~18068-rot-01-000[3-8].tmp.raw' -append show:
This does not:

Code: Select all

$ convert -depth 8 -size 29792x128 'rgb:~18068-rot-01-%04d.tmp.raw[3-8]' -append show:
convert: no decode delegate for this image format `~18068-rot-01-0003.tmp.raw' @ constitute.c/ReadImage/526.
convert: no decode delegate for this image format `~18068-rot-01-0004.tmp.raw' @ constitute.c/ReadImage/526.
convert: no decode delegate for this image format `~18068-rot-01-0005.tmp.raw' @ constitute.c/ReadImage/526.
convert: no decode delegate for this image format `~18068-rot-01-0006.tmp.raw' @ constitute.c/ReadImage/526.
convert: no decode delegate for this image format `~18068-rot-01-0007.tmp.raw' @ constitute.c/ReadImage/526.
convert: no decode delegate for this image format `~18068-rot-01-0008.tmp.raw' @ constitute.c/ReadImage/526.
convert: missing an image filename `show:' @ convert.c/ConvertImageCommand/2766.
If it's not obvious from the above examples, I'm trying to open a series of images with a glob-type syntax (in a script). The second format is preferable since formats like [7-13] won't work correctly. (yields 0007-00013 instead of 0007-0013).

Can explicit format specification (i.e., rgb:filename) be combined with imagemagick's built-in globbing?
Last edited by wildbug on 2009-02-23T14:54:15-07:00, edited 1 time in total.
wildbug
Posts: 21
Joined: 2008-06-18T12:53:24-07:00

Re: Combining explicit format + filename globbing on cmd line

Post by wildbug »

Nevermind. I was originally using raw RGB temp files since they could be concatenated into a whole file, but since I don't need to do that anymore, I switched to MPC temp files, and since that extention is recognized by IM, no explicit format specifier is necessary.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: [SOLVED] Combining explicit format + filename globbing...

Post by anthony »

Also MIFF image file format can be just concatenated together, such as when streaming images from multiple commands into one command.

See Im Examples, File Handling, MIFF
http://www.imagemagick.org/Usage/files/#miff
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply