Long time ago I've stumbled over a quirk with the -format option. Now I have time to write about.
Executing the following commandline string ...
Code: Select all
convert frame.jpg -format "Image: %f\n Format: %m\n W x H: %wx%h\n X x Y: %[xresolution]x%[yresolution]\nQuality: %Q\n Size: %b\n" INFO:
Code: Select all
Image: frame.jpg
Format: JPEG
W x H: 176x108
X x Y: 72x72
Quality: 85
Size: 6067
Now using following commandline to write the formatted output into text file ...
Code: Select all
convert frame.jpg -format "Image: %f\n Format: %m\n W x H: %wx%h\n X x Y: %[xresolution]x%[yresolution]\nQuality: %Q\n Size: %b\n" INFO:test.txt
Code: Select all
Image: frame.jpg
Format: JPEG
W x H: 176x108
X x Y: 72x72
Quality: 85
Size: 0
Using ...
Code: Select all
convert frame.jpg -format "Image: %f\n Format: %m\n W x H: %wx%h\n X x Y: %[xresolution]x%[yresolution]\nQuality: %Q\n Size: %b\n" INFO: >test.txt
Code: Select all
Image: frame.jpg
Format: JPEG
W x H: 176x108
X x Y: 72x72
Quality: 85
Size: 6067
Thanks in advance for a good answer!
In the meantime I can help me with the redirection symbol.
Detlev Dalitz
DD.20100203.2220.CET