Page 1 of 1

Can't Monitor Progress

Posted: 2010-08-27T12:56:14-07:00
by KillaH425
I want to make a program that outputs "Loading..." while the program is working but it only seems to monitor the file save. My program creates a panaromic JPG as big as it can (only 80 wide because of the 65500px width limit). I use the command "convert Output1.jpg Output2.jpg ... +append OutputFull.jpg" and I tried using -monitor but it only monitors the saving of the image which takes like 2 seconds but the first 1-2 minutes I'm assuming it is opening the files and actually appending them and saving to memory or something. That is what I want to track, basically just the beginning of the process and when it's done, is there any hook I can use? I know there is some way in C++ to do it probably using the monitor.h function and I am also interested in a solution in VB. Also, I noticed there is a way to combine like filenames when using append like the example

Code: Select all

      convert dragon_long.gif  '(' font_{0,0,6,2,9}.gif +append ')' \
              -background none   -append   append_parenthesis.gif
on http://www.imagemagick.org/Usage/layers/. I tried using that with just appending my files, so Output{1,2,...}.jpg and it gave me an error that it didn't recognize the filename literally. Any thoughts?

Thanks

Re: Can't Monitor Progress

Posted: 2010-08-27T14:51:57-07:00
by el_supremo
You don't show where you put the -monitor option but your description of the output suggests it was near the end of the command.
Try this:

Code: Select all

convert -monitor Output1.jpg Output2.jpg ... +append OutputFull.jpg
Pete

Re: Can't Monitor Progress

Posted: 2010-08-27T15:41:36-07:00
by fmw42
If you have more commands or want to only monitor one part, you can also use +monitor in recent versions of IM (ImageMagick 6.6.0-10 or later) to stop the monitor from continuing to other commands.