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: 11065
Joined: 2003-05-31T11:32:55-07:00

Post by magick » 2006-05-10T07:06:49-07:00

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: 11065
Joined: 2003-05-31T11:32:55-07:00

Post by magick » 2006-05-10T07:28:08-07:00

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: 11065
Joined: 2003-05-31T11:32:55-07:00

Post by magick » 2006-05-11T06:48:19-07:00

Sure, you can use Ghostscript to convert PDF to JPEG.

User avatar
magick
Site Admin
Posts: 11065
Joined: 2003-05-31T11:32:55-07:00

Post by magick » 2006-05-12T07:11:07-07:00

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

Post Reply