Problem with CPU, PDF to Image

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
Rebel

Problem with CPU, PDF to Image

Post 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?
Rebel

Re: Problem with CPU, PDF to Image

Post by Rebel »

i am trying to use: -limit memory 32mb -limit map 64mb

but then it just doesn't make the images??
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Problem with CPU, PDF to Image

Post 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?
Rebel

Re: Problem with CPU, PDF to Image

Post 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.
Post Reply