[SOLVED] ImageMagick problem converting grayscale JPEG to pdf
by lucabon from LinuxQuestions.org on (#5S22R)
From imagemagick-7.1.0_11 converting a grayscale JPEG to pdf lead to scale it down to 1/3 and duplicate 3 times in horizontal.
Last known good is imagemagick-7.1.0_10.
It incorrectly assign "/N 3" and "/DeviceRGB" to the colorspace:
--- testgrayscale.pdf2021-11-18 10:53:26.828587225 +0100
+++ testgrayscale-ok.pdf2021-11-18 10:56:04.156898617 +0100
@@ -145,10 +145,10 @@
endobj
11 0 obj
<<
-/N 3
+/N 1
/Filter /ASCII85Decode
/Length 12 0 R
-/Alternate /DeviceRGB
+/Alternate /DeviceGray
>>
stream
!!!&hCh%='">BfUD/OH97oDWU=BSfM#NYpn!"o8;!$_I_@:O@t5u:BOzzzzzz!!)`D!!*'"!
Attached Thumbnails Attached Files
Last known good is imagemagick-7.1.0_10.
It incorrectly assign "/N 3" and "/DeviceRGB" to the colorspace:
--- testgrayscale.pdf2021-11-18 10:53:26.828587225 +0100
+++ testgrayscale-ok.pdf2021-11-18 10:56:04.156898617 +0100
@@ -145,10 +145,10 @@
endobj
11 0 obj
<<
-/N 3
+/N 1
/Filter /ASCII85Decode
/Length 12 0 R
-/Alternate /DeviceRGB
+/Alternate /DeviceGray
>>
stream
!!!&hCh%='">BfUD/OH97oDWU=BSfM#NYpn!"o8;!$_I_@:O@t5u:BOzzzzzz!!)`D!!*'"!
Attached Thumbnails Attached Files
testgrayscale.pdf (48.9 KB) | |
testgrayscale-ok.pdf (48.9 KB) |