Example using convert command with time limit
Posted: 2011-07-17T17:58:24-07:00
i believe that you can use -limit time to restrict how long the convert to be timeout.
But I cannot find an example how to use it.
I was trying to convert multiple page PDF to PNGs and using this following command to limit it to 10seconds:
The process, indeed, did time out but after about 1 minute.
I wonder whether I had use wrong syntax, or the 10sec limit was only started count down during convert command but not when GhostScript was running.
Also, when trying convert with option -limit memory, as in
checking Activity Monitor (MAC OSX) as well as using top command, the real memory shows that:
- There was a few seconds when the process's memory took over 1GB
- Most of the time, the memory took around 550MB.
In either case, the memory seems to exceed the set limit of 512MiB.
Is there any other resources including in this real memory consumption?
Thanks
But I cannot find an example how to use it.
I was trying to convert multiple page PDF to PNGs and using this following command to limit it to 10seconds:
Code: Select all
convert -limit time 10 input.pdf output.png
I wonder whether I had use wrong syntax, or the 10sec limit was only started count down during convert command but not when GhostScript was running.
Also, when trying convert with option -limit memory, as in
Code: Select all
convert -limit memory 512MiB input.pdf output.png
- There was a few seconds when the process's memory took over 1GB
- Most of the time, the memory took around 550MB.
In either case, the memory seems to exceed the set limit of 512MiB.
Is there any other resources including in this real memory consumption?
Thanks