Set a callback that will be called during the processing of the Imagick image.
The progress monitor allows you to be notified of progress during image processing. It also allows you to abort the image processing, for example if it's taking too long, or it is detected the image is no longer needed.

In the example below, the progress is monitored and then the image operation is cancelled when the progress passed 20%.

Please note the offset and span values are approximate and do not reflect an accurate measure of the image progress.
The progress monitor allows you to be notified of progress during image processing. It also allows you to abort the image processing, for example if it's taking too long, or it is detected the image is no longer needed.

In the example below, the progress is monitored and then the image operation is cancelled when the progress passed 20%.

Please note the offset and span values are approximate and do not reflect an accurate measure of the image progress.
Progress: 5 / 400 
Progress: 10 / 400
Progress: 15 / 400
Progress: 20 / 400
Progress: 25 / 400
Progress: 30 / 400
Progress: 35 / 400
Progress: 40 / 400
Progress: 45 / 400
Progress: 50 / 400
Progress: 55 / 400
Progress: 60 / 400
Progress: 65 / 400
Progress: 70 / 400
Progress: 75 / 400
Progress: 80 / 400
Image processing was aborted: Processing reached 20%