Ugly jpegs from PDF

MagickWand for PHP is an object-oriented PHP interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning MagickWand for PHP.
Post Reply
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Post by magick »

Use MagickSetResolution to set the x & y resolution to 300 before you read. After the image read, use MagickResizeImage() to reduce the image size. This will give you decent looking renderings of your PDF images.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Post by magick »

Try
  • MagickTransformImage(wand,NULL,"400x400");
to resize the image to a maximum of 400 pixels while still retaining the aspect ratio of the image.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Post by magick »

Sure, you can use Ghostscript to convert PDF to JPEG.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Post by magick »

Ghostscript is a separate package from ImageMagick. Go to the Ghostscript mailing lists and discussion forums for help.
Post Reply