Article 5S22R [SOLVED] ImageMagick problem converting grayscale JPEG to pdf

[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 Thumbnailsattachment.php?attachmentid=37722&stc=1& Attached Files
pdf.giftestgrayscale.pdf (48.9 KB)
pdf.giftestgrayscale-ok.pdf (48.9 KB)
latest?d=yIl2AUoC8zA latest?i=gqShg8cAB_Y:gXlcbItmx68:F7zBnMy latest?i=gqShg8cAB_Y:gXlcbItmx68:V_sGLiP latest?d=qj6IDK7rITs latest?i=gqShg8cAB_Y:gXlcbItmx68:gIN9vFw
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments