[solved] convert to .pdf keeps file type
Posted: 2012-11-19T06:53:38-07:00
I can't convert .png to .pdf.
If I convert the png files to non-2c space in GIMP, before converting, this doesn't change the behavior:
If I convert the png files to .jpg via convert before converting to pdf, the output is also jpg:
This seems to be unrelated to the multi-page setup:
Arch Linux 64bit
Version: ImageMagick 6.8.0-3 2012-10-27 Q16 http://www.imagemagick.org
Code: Select all
$ convert a.png b.png c.pdf
$ identify a.png b.png c.pdf
a.png PNG 1274x1749 1274x1749+0+0 8-bit sRGB 2c 17.3KB 0.000u 0:00.000
b.png[1] PNG 1128x1666 1128x1666+0+0 8-bit sRGB 2c 26.5KB 0.000u 0:00.000
c.pdf[2] PNG 1274x1749 1274x1749+0+0 8-bit sRGB 2c 18.2KB 0.000u 0:00.000
Code: Select all
$ identify a.png b.png c.pdf
a.png PNG 1274x1749 1274x1749+0+0 8-bit sRGB 40.1KB 0.000u 0:00.000
b.png[1] PNG 1128x1666 1128x1666+0+0 8-bit sRGB 57.9KB 0.000u 0:00.000
c.pdf[2] PNG 1274x1749 1274x1749+0+0 8-bit sRGB 2c 18.2KB 0.000u 0:00.000
Code: Select all
$ identify a.jpg b.jpg c.pdf
a.jpg JPEG 1274x1749 1274x1749+0+0 8-bit sRGB 201KB 0.000u 0:00.000
b.jpg[1] JPEG 1128x1666 1128x1666+0+0 8-bit sRGB 325KB 0.000u 0:00.000
c.pdf[2] JPEG 1274x1749 1274x1749+0+0 8-bit sRGB 201KB 0.000u 0:00.000
Code: Select all
$ convert a.png a.pdf
$ identify a.png a.pdf
a.png[2] PNG 1274x1749 1274x1749+0+0 8-bit sRGB 40.1KB 0.000u 0:00.000
a.pdf[1] PNG 1274x1749 1274x1749+0+0 8-bit sRGB 2c 18.2KB 0.000u 0:00.000
Version: ImageMagick 6.8.0-3 2012-10-27 Q16 http://www.imagemagick.org