Page 1 of 1
Help - How can I make convert echo a result after finish
Posted: 2008-12-21T05:17:01-07:00
by y0gz
Hey, how can I make convert.exe echo a result to the cmd windows after it finishes the converting process?
Re: Help - How can I make convert echo a result after finish
Posted: 2008-12-21T07:16:14-07:00
by cuongvt
display path_to_converted_file?
Re: Help - How can I make convert echo a result after finish
Posted: 2008-12-21T07:17:49-07:00
by y0gz
exactly? how can I do that without calling another command?
Re: Help - How can I make convert echo a result after finish
Posted: 2008-12-21T07:38:19-07:00
by cuongvt
not sure what u meaned. But if I understand corectly:
convert aaa.jpg bbb.jpg
display bbb.jpg
is what you meaned?
regards
Re: Help - How can I make convert echo a result after finish
Posted: 2008-12-21T09:04:25-07:00
by y0gz
no man... I meant that whenever convert.exe finishes converting the file, it will output (echo) to the cmd the path of the file or something to let me know it succeeded
Re: Help - How can I make convert echo a result after finish
Posted: 2008-12-21T13:31:44-07:00
by fmw42
y0gz wrote:no man... I meant that whenever convert.exe finishes converting the file, it will output (echo) to the cmd the path of the file or something to let me know it succeeded
add -monitor to your command line
see
http://www.imagemagick.org/Usage/basics/#controls
Re: Help - How can I make convert echo a result after finish
Posted: 2008-12-22T07:19:59-07:00
by y0gz
Hey, thanks for the tip.. but -identify/-write info: are giving me the info for the source file, I would like the convert to print info about the target file after it has converted it... and if it fails it won't print anything/something else, the same as the vb.net com dll does...
any ideas?
Re: Help - How can I make convert echo a result after finish
Posted: 2008-12-22T11:06:26-07:00
by fmw42
y0gz wrote:Hey, thanks for the tip.. but -identify/-write info: are giving me the info for the source file, I would like the convert to print info about the target file after it has converted it... and if it fails it won't print anything/something else, the same as the vb.net com dll does...
any ideas?
You could try piping the output
convert inputimage argument -write outputimage miff:- | identify -verbose -
outputimage and miff:- will be the same data. outputimage will be written to disk and miff:- will be piped to identify
Re: Help - How can I make convert echo a result after finish
Posted: 2008-12-25T01:07:05-07:00
by anthony
Try adding
-verbose
rose:=> PNM 70x46 70x46+0+0 8-bit DirectClass 9.45kb
rose:=>/tmp/r ROSE 70x46 70x46+0+0 8-bit DirectClass 60.7kb
That last line of output give the output filename.
ASIDE: As I never specified a suffix or other format hint, IM chose to use the input format for the built-in image. C coding for a PNM image memory blob. A little strange I thought.
Perhaps the
-verbose report for image output can be improved with the actual output coder format information?