"Bob Jamison" on wrote...
| I have a website, in which we use PHP to allow for users
to upload
| images, which are then processed by Imagemagick (cropped,
scaled,
| etc). Because the users can upload up to 9 images at once,
and they
| are often large images, they will sometimes close the
browser window
| during the middle of processing. We have a pop-up that is
displaying a
| progress bar that shows how long it will take for the
upload to
| happen, but for the image processing, the only thing we
can do is say
| "Processing Images...Please Wait" -- and it's
often at that point that
| people get impatient and close the window. It would be
really nice to
| have some sort of progress bar that would display how long
image
| processing will take, so people could see that something
is actually
| happening. Is there anyway of doing this with Imagemagick?
|
You can fudge a progress bar, if you are using MagickWand
API
just make the bar jump to specific prcentages at the end of
each
API progressing option.
EG 10% afetr reading in the image, 15% after stripping,
30% after resizing it and so on. You will need to time
operations
or make a guess at the appropriate percentage for each part.
It is unlikely that IM will have a progress montior inside
each
individual operator however.
You can do this for the command line too, but you will need
to seperate
your IM commands into lots of little steps, which will slow
up the
processing enormously. Go with the API instead.
Anthony Thyssen ( System Programmer ) <A.Thyssen griffith.edu.au>
-----------------------------------------------------------
------------------
This program is so good it can `even nail jelly to a
tree'.
(achieve the impossible)
-----------------------------------------------------------
------------------
Anthony's Home is his Castle http://www.cit.gu.
edu.au/~anthony/
_______________________________________________
Magick-users mailing list
Magick-users imagemagick.org
http://studio.imagemagick.org/mailman/listinfo/magick
-users
|