composite pdf files make low res file . . fix?

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
jackieO

composite pdf files make low res file . . fix?

Post by jackieO »

I am using the below command and it works great! The only issue is the pdf that it produces looks REALLY low quality and the two inputs are high quality . . . i have changed the output to jpg and png, but the output is still pixelated. . . .

Code: Select all

composite -compose atop -gravity center /tmp/aj/main.pdf  /tmp/aj/template.pdf  /tmp/aj/newFile.pdf
what can I do to fix the bad quality (pixelated) output?
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: composite pdf files make low res file . . fix?

Post by Bonzo »

What happens if you add a -density?

Code: Select all

composite -density 400 -compose atop -gravity center /tmp/aj/main.pdf  /tmp/aj/template.pdf  /tmp/aj/newFile.pdf
jackieO

Re: composite pdf files make low res file . . fix?

Post by jackieO »

it works great, but makes a huge file (size).

My command is as follows:

Code: Select all

composite -colorspace RGB -density 175x175 -compose atop -gravity center /tmp/main.pdf /tmp/face.pdf /newFile.pdf
main.pdf (264kb) + face.pdf (168kb) = newFile (5.1mb)

something seems wrong and I can't get the resulting file to a decent size unless I take the -density off and I get a very poor looking file. Anyone have any tips or tricks?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: composite pdf files make low res file . . fix?

Post by fmw42 »

IM pdf processing is not the most efficient by way of filesize

Post an example for us to try.
jackieO

Re: composite pdf files make low res file . . fix?

Post by jackieO »

main.pdf = 268kb
face.pdf = 183kb

these files make a 3.5mb file. . . :?

i am open to any ideas. . .
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: composite pdf files make low res file . . fix?

Post by anthony »

PDF to PDF.... Didn't you read the 'Read this first' note?

See... A Word about Vector Formats...
http://www.imagemagick.org/Usage/formats/#vector
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply