Problem with -format "%b" INFO:test.txt
Posted: 2010-02-03T14:27:01-07:00
Hi all, this is my first visit and posting here in the ImageMagick forum, and what I have to report is hopefully not discussed too often by other users of this fine software.
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 ...
... will give such result:
... which seems to be fine.
Now using following commandline to write the formatted output into text file ...
... will give such result in file "test.txt":
Look at the zero size value.
Using ...
... will give such result in file "test.txt":
So what is going on with the "%b" value when using "INFO:test.txt"?
Thanks in advance for a good answer!
In the meantime I can help me with the redirection symbol.
Detlev Dalitz
DD.20100203.2220.CET
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