List Info

Thread: Progress Bar?




Progress Bar?
user name
2006-02-13 23:07:17
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? 

-- 
___________________________________________
Graffiti.net free e-mail  www.graffiti.net
Play 100s of games for FREE! http://games.graffiti.net/



Powered By Outblaze

_______________________________________________
Magick-users mailing list
Magick-usersimagemagick.org
http://studio.imagemagick.org/mailman/listinfo/magick
-users
Progress Bar?
user name
2006-02-13 23:37:44
"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.Thyssengriffith.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-usersimagemagick.org
http://studio.imagemagick.org/mailman/listinfo/magick
-users
Progress Bar?
user name
2006-02-14 09:05:47
On 14 Feb 2006 at 7:07, Bob Jamison 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? 


Perhaps you should be looking for a PHP module for this.
There are 
certainly similar things for Perl. It wouldn't be difficult
in 
increment a progress bar for a every 1/9 step. 

A search for 'php progress bar' gets a lot of hits too.

HTH.
Dp.

_______________________________________________
Magick-users mailing list
Magick-usersimagemagick.org
http://studio.imagemagick.org/mailman/listinfo/magick
-users
[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )