Page 1 of 1
convert pdf to png causes High CPU utilisation
Posted: 2015-12-30T05:15:40-07:00
by Ganesha
this command converts most of the pdf to png but sometimes results in 100% CPU utilisation of ghostscript and also resulting in a never ending process
PS: am using Imagemagick 6.9.2-4
Re: convert pdf to png causes High CPU utilisation
Posted: 2015-12-30T06:22:13-07:00
by Bonzo
Do the bad PDF files always fail and the good ones always pass?
If so it must be a problem with the pdf and you will need to post a link to the bad one.
Re: convert pdf to png causes High CPU utilisation
Posted: 2016-01-03T23:28:05-07:00
by Ganesha
@Bonzo Since the document is a sensitive one. I can't share it. But I have found out that the gs command running background of the not converted pdf using 100% CPU.
Code: Select all
gs -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 -sDEVICE=pamcmyk32 -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -r72x72 -dUseCIEColor -dFirstPage=1 -dLastPage=1 -sOutputFile=/tmp/magick-2473h7IyR1jxJov3%d -f/tmp/magick-2473ljRlL1Re3EWV -f/tmp/magick-2473eXbEz6zff2nO
Re: convert pdf to png causes High CPU utilisation
Posted: 2016-01-05T05:52:47-07:00
by Bonzo
I am afraid I am not an expert or have had this problem myself.
I would say you need to track down the difference between the ones that pass and the ones that fail. Are the pdf files created with different software?
Are the original pdf files that fail a lot larger, try setting a density convert -density 300 in.pdf[0] out.png
You can use identify -verbose in.pdf[0] to see the details of the files.
Re: convert pdf to png causes High CPU utilisation
Posted: 2016-01-05T06:05:13-07:00
by Ganesha
thanks Bonzo will try your suggestion
Re: convert pdf to png causes High CPU utilisation
Posted: 2016-01-21T07:48:47-07:00
by seirerman
Hello!
I have the same problem, and I can provide a file that causes this behaviour:
https://www.tirol.gv.at/fileadmin/theme ... _druck.pdf
I can also open the file in Adobe Reader without problems.