Quality when converting bitmaps to PDF format
Posted: 2012-08-14T05:31:21-07:00
Hi everyone,
I need to convert a large number of images from bitmap format (JPEG, PNG) to PDF. I read the documentation but did not find an answer to my questions. These are:
1. When converting JPEGs, is it guaranteed that the quality of the PDF will be no worse than the JPEG? Specifically, when converting a JPEG image to PDF, will the JPEG stream by re-encoded by ImageMagick or will ImageMagick just put the original JPEG DCT byte stream into the PDF without changing it?
2. When converting PNGs or other losless formats, which encoding will ImageMagick use? Is there a risk that it uses DCTEncoding for some images, thus re-encoding the losless PNG into a lossy JPEG stream? Or will it just use ZIP or RLE encoding in the PDF always?
3. Will ImageMagick keep the colors as is when just using "convert test.jpg test.pdf"? Specifically, will it always embedd the ICC profile found in the original bitmap file?
Any insight greatly appreciated.
Best regards,
Markus
I need to convert a large number of images from bitmap format (JPEG, PNG) to PDF. I read the documentation but did not find an answer to my questions. These are:
1. When converting JPEGs, is it guaranteed that the quality of the PDF will be no worse than the JPEG? Specifically, when converting a JPEG image to PDF, will the JPEG stream by re-encoded by ImageMagick or will ImageMagick just put the original JPEG DCT byte stream into the PDF without changing it?
2. When converting PNGs or other losless formats, which encoding will ImageMagick use? Is there a risk that it uses DCTEncoding for some images, thus re-encoding the losless PNG into a lossy JPEG stream? Or will it just use ZIP or RLE encoding in the PDF always?
3. Will ImageMagick keep the colors as is when just using "convert test.jpg test.pdf"? Specifically, will it always embedd the ICC profile found in the original bitmap file?
Any insight greatly appreciated.
Best regards,
Markus