When I try to convert a set of PNG files (all of which are 1700x2200, 200x200 DPI, confirmed with identify) as follows:
convert *.png test.pdf
This gives me a very strange result - every page has a seemingly arbitrary amount of white space added to it, such that none of the pages are the expected size (8.5x11), and in fact every single page is a different size. Why is this and what can I do about it?
A sample of what it gives me here.
Version: ImageMagick 6.8.9-0 Q16 x86_64 2014-04-13
(and for good measure) GPL Ghostscript 9.14 (2014-03-26)
Problem converting a set of PNG files to PDF
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: Problem converting a set of PNG files to PDF
Not arbitrary. When we identify ...dwidmann wrote:... a seemingly arbitrary amount ...
Code: Select all
F:\web\im>%IM%identify mass-spectrometer-problem_*.png
mass-spectrometer-problem_01.png PNG 1700x2200 1770x3058+0+0 8-bit sRGB 9c 168KB 0.000u 0:00.000
mass-spectrometer-problem_02.png[1] PNG 1700x2200 1930x3061+117+0 8-bit sRGB 8c 60.1KB 0.000u 0:00.000
Code: Select all
convert mass-spectrometer-problem_*.png +repage x.pdf
snibgo's IM pages: im.snibgo.com
Re: Problem converting a set of PNG files to PDF
Ah, thanks for the assist snibgo!
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: Problem converting a set of PNG files to PDF
My pleasure. Thanks for providing all the information needed to solve the problem:
- a description of what is wrong;
- the command that did it;
- input files and output file;
- version numbers of software (so I quickly ruled out using last-century software).
You'd be surprised how long it can take to drag this out of people.
- a description of what is wrong;
- the command that did it;
- input files and output file;
- version numbers of software (so I quickly ruled out using last-century software).
You'd be surprised how long it can take to drag this out of people.
snibgo's IM pages: im.snibgo.com