Page 1 of 1

Problem with CPU, PDF to Image

Posted: 2009-03-31T01:04:19-07:00
by Rebel
Hello,

I am using ghostscript and imagemagicK to make images from pdf.

It works nice on relative small pdf's
or large on bad quality

I am now using this command:

Code: Select all

exec("convert -density 400 $test6 -resize 25% $test5/image.png");
Wich makes rather big files but it has to the quality needs to be good.

Only we are running more website's and the making of these images takes 100% of the server.

Any tips on how to get this relative normal?
or is it just always that it takes 100%cpu on big graphic pdf's?

Re: Problem with CPU, PDF to Image

Posted: 2009-04-01T02:23:57-07:00
by Rebel
i am trying to use: -limit memory 32mb -limit map 64mb

but then it just doesn't make the images??

Re: Problem with CPU, PDF to Image

Posted: 2009-04-01T06:03:52-07:00
by magick
What do you mean it doesn't make the images? Try this example from the command line:
  • convert -limit memory 32mb -limit map 64mb -density 400 image.pdf -resize 25% image.png
Does image.png exist after this command is executed?

Re: Problem with CPU, PDF to Image

Posted: 2009-04-01T06:57:10-07:00
by Rebel
That it doesn't generate any image not even blank

we are now testing trough command line on the linux server.
this gives better feedback.

hoping to solve the problem soon.