[Resolved] Page misalignment converting PNG to PDF
Posted: 2016-06-11T09:05:08-07:00
Hi,
I had pages in PNG format, edited in Kolourpaint, and was trying to use ImageMagick to assemble them into a PDF file with one image per page. In the generated PDF file, some of the pages were correct, but some of the pages had uneven margins (not all in the same direction).
I was using ImageMagick 6.8.8-10 Q16 i686 2015-03-10 on Fedora 22 (viewing in Evince). Downloaded and installed the updated ImageMagick-7.0.1-10-Q8-x64-dll.exe on Windows 10 (and viewed with Adobe Reader) and it behaved the same.
This could be a Kolourpaint bug, or a feature, but here seems like the place to check.
Here is a test image that shows the behaviour when converted to a 1-page PDF by itself:
https://www.dropbox.com/s/tksin9t7wn8c2 ... n.zip?dl=1
Drawing of the results:
The image is shifted to the south-west on the page, and because there are no added margins, two of the edges are cut off (1).
This is OK (2). So if there was a problem with the PNG file, it's not there in the BMP.
This is OK (2). So if there was a problem with the PNG file, it was fixed by converting to BMP and back.
The image is shifted to the north-west on the page (3). So if there was a problem with the PNG file, it was preserved (and flipped) by the flip operation.
I had pages in PNG format, edited in Kolourpaint, and was trying to use ImageMagick to assemble them into a PDF file with one image per page. In the generated PDF file, some of the pages were correct, but some of the pages had uneven margins (not all in the same direction).
I was using ImageMagick 6.8.8-10 Q16 i686 2015-03-10 on Fedora 22 (viewing in Evince). Downloaded and installed the updated ImageMagick-7.0.1-10-Q8-x64-dll.exe on Windows 10 (and viewed with Adobe Reader) and it behaved the same.
This could be a Kolourpaint bug, or a feature, but here seems like the place to check.
Here is a test image that shows the behaviour when converted to a 1-page PDF by itself:
https://www.dropbox.com/s/tksin9t7wn8c2 ... n.zip?dl=1
Drawing of the results:
Code: Select all
convert test.png test.pdf
Code: Select all
convert test.png test.bmp
convert test.bmp test.pdf
Code: Select all
convert test.bmp test2.png
convert test2.png test.pdf
Code: Select all
convert -flip test.png test2.png
convert test2.png test.pdf