waitForImage
Wait for a image to be ready for printing, or for any errors processing the image. This call will block while the image is being processed. If the image is ready when making this call, it will return immediately.
Parameter
The name of the image to wait for (a bare string), or an object:
| Key | Type | Description |
|---|---|---|
| name | string | The name of the image to wait for. |
| printer | string | Printer ID. Required if more than one printer is available. |
Returns
The final state of the image: READY, ERROR, or OUT_OF_MEMORY.
Example
waitForImage "My Image"