Help - How can I make convert echo a result after finish
Help - How can I make convert echo a result after finish
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
display path_to_converted_file?
Re: Help - How can I make convert echo a result after finish
exactly? how can I do that without calling another command?
Re: Help - How can I make convert echo a result after finish
not sure what u meaned. But if I understand corectly:
convert aaa.jpg bbb.jpg
display bbb.jpg
is what you meaned?
regards
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
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
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Help - How can I make convert echo a result after finish
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
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?
any ideas?
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Help - How can I make convert echo a result after finish
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
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: Help - How can I make convert echo a result after finish
Try adding -verbose
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?
Code: Select all
convert rose: -verbose /tmp/r
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?
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/