Problem converting PDF to GIF

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
SteffenR

Problem converting PDF to GIF

Post by SteffenR »

Hi there..
I have a really strange problem with converting a PDF-File to a GIF Image or to other Image Formats.
The outputted image is much bigger (dimensions) than the input PDF File..

Here you find the used PDF and the outputted GIF File..
http://www.port11.de/output.gif
http://www.port11.de/problem.pdf

I tried the following commands:

Code: Select all

convert problem.pdf output.gif
and

Code: Select all

convert problem.pdf -trim output.gif
Imagemagick-Version:
ImageMagick 6.0.6 11/15/06 Q16

Thx in advance for your help,
SteffenR
ridera

Re: Problem converting PDF to GIF

Post by ridera »

Suggest that you specify the size of the output you want so the code will know.
SteffenR

Re: Problem converting PDF to GIF

Post by SteffenR »

ridera wrote: Suggest that you specify the size of the output you want so the code will know.

sry.. i already did..
The output is the same - only resized by the given size via convert -resize 200x150 eg..

Anybody another tip to solve this problem ?

Thx..
el_supremo
Posts: 1015
Joined: 2005-03-21T21:16:57-07:00

Re: Problem converting PDF to GIF

Post by el_supremo »

You need:

Code: Select all

convert problem.pdf -trim +repage output.gif
The original image actually contains three signatures plus some printing, including a logo, on a transparent background.

Pete
SteffenR

Re: Problem converting PDF to GIF

Post by SteffenR »

el_supremo wrote: You need:

Code: Select all

convert problem.pdf -trim +repage output.gif
The original image actually contains three signatures plus some printing, including a logo, on a transparent background.

Pete


Thanks - that works perfect for me ;)..

Greets,
SteffenR
Post Reply