Posted: 2006-01-29T18:55:52-07:00
Add -monochrome to your command line. Group4 compression will not work unless the image is bilevel.
Use https://github.com/ImageMagick/ImageMagick/discussions instead.
https://imagemagick.com/discourse-server/
https://imagemagick.com/discourse-server/viewtopic.php?t=5744
Code: Select all
convert -compress Group4 -type bilevel -monochrome loadFTPImg.asp.jpg loadFTPImg.asp_1.tiff
Code: Select all
convert -compress Group4 -type bilevel -monochrome loadFTPImg.asp.jpg loadFTPImg.asp_2.pdf
Code: Select all
convert -compress Group4 loadFTPImg.asp.jpg loadFTPImg.asp_3.pdf
Code: Select all
Version: ImageMagick 6.2.6 02/01/06 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2006 ImageMagick Studio LLC
Code: Select all
Version: ImageMagick 6.2.6 02/24/06 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2006 ImageMagick Studio LLC
Code: Select all
convert -compress Group4 -type bilevel -monochrome loadFTPImg.asp.jpg loadFTPImg.asp_2.pdf
convert -verbose -compress Group4 loadFTPImg.asp.jpg loadFTPImg.asp_3_new.pdf
Code: Select all
4 0 obj
<<
/Type /Page
/Parent 3 0 R
/Resources <<
/Font << /F0 8 0 R >>
/XObject << /Im0 9 0 R >>
/ProcSet 7 0 R >>
......
7 0 obj
[ /PDF /Text /ImageC ]
endobj
......
9 0 obj
<<
/Type /XObject
/Subtype /Image
/Name /Im0
/Filter [ /CCITTFaxDecode ]
/DecodeParms [ << >> << /K -1 /Columns 1620 /Rows 736 >> ]
/Width 1620
/Height 736
/ColorSpace 11 0 R
/BitsPerComponent 1
/Length 10 0 R
>>
stream
......
endstream
endobj
10 0 obj
15499
endobj
Code: Select all
4 0 obj
<</Type/Page/MediaBox [0 0 595 842]
/Rotate 90/Parent 3 0 R
/Resources<</ProcSet[/PDF /ImageB]
/XObject 8 0 R
>>
...
8 0 obj
<</R7
7 0 R>>
endobj
7 0 obj
<</Subtype/Image
/ImageMask true
/Width 1620
/Height 736
/BitsPerComponent 1
/Filter/CCITTFaxDecode
/DecodeParms<</K -1
/Columns 1620>>/Length 15274>>stream
......
endstream
endobj
Code: Select all
...
/Name /Im0
/Filter [ /CCITTFaxDecode ]
/DecodeParms [ << /K -1 /Columns 1620 /Rows 736 >> ]
/Width 1620
/Height 736
...
Code: Select all
C:\Documents and Settings\ivar\Desktop\imagemagick>convert -verbose -compress Group4 loadFTPImg.asp.jpg loadFTPImg.asp_3_new.pdf
loadFTPImg.asp.jpg JPEG 1620x736 1620x736+0+0 DirectClass 2e+002kb 0.070u 0:01
TIFF Directory at offset 0x0
Image Width: 1620 Image Length: 736
Resolution: 200, 200 pixels/inch
Bits/Sample: 1
Compression Scheme: CCITT Group 4
Photometric Interpretation: min-is-white
FillOrder: msb-to-lsb
Orientation: row 0 top, col 0 lhs
Samples/Pixel: 1
Rows/Strip: 736
Planar Configuration: single image plane
Software: ImageMagick 6.2.6 02/01/06 Q16 http://www.imagemagick.org
DocumentName: c:\winnt\TEMP\magick-4d6uq7ho
loadFTPImg.asp.jpg=>c:\winnt\TEMP\magick-4d6uq7ho JPEG 1620x736 1620x736+0+0 PseudoClass 2c 2e+001kb 1.743u 0:04
TIFF Directory at offset 0x0
Image Width: 106 Image Length: 48
Resolution: 200, 200 pixels/inch
Bits/Sample: 1
Compression Scheme: CCITT Group 4
Photometric Interpretation: min-is-white
FillOrder: msb-to-lsb
Orientation: row 0 top, col 0 lhs
Samples/Pixel: 1
Rows/Strip: 48
Planar Configuration: single image plane
Software: ImageMagick 6.2.6 02/01/06 Q16 http://www.imagemagick.org
DocumentName: c:\winnt\TEMP\magick-t8pkbg6r
loadFTPImg.asp.jpg=>c:\winnt\TEMP\magick-t8pkbg6r JPEG 1620x736=>106x48 106x48+0+0 PseudoClass 2c 730
loadFTPImg.asp.jpg=>loadFTPImg.asp_3_new.pdf JPEG 1620x736 1620x736+0+0 DirectClass 2e+001kb 1.923u 0:05
C:\Documents and Settings\ivar\Desktop\imagemagick>convert -verbose -compress Group4 loadFTPImg.asp.jpg loadFTPImg.asp_4_new.pdf
loadFTPImg.asp.jpg JPEG 1620x736 1620x736+0+0 DirectClass 2e+002kb 0.060u 0:01
loadFTPImg.asp.jpg=>loadFTPImg.asp_4_new.pdf JPEG 1620x736 1620x736+0+0 DirectClass 3e+002kb 0.330u 0:01
C:\Documents and Settings\ivar\Desktop\imagemagick>
Code: Select all
22/02/2006 15:48 174,072 loadFTPImg.asp.jpg
16/03/2006 23:47 17,632 loadFTPImg.asp_3_new.pdf
16/03/2006 23:50 327,144 loadFTPImg.asp_4_new.pdf
Code: Select all
"/DecodeParms [ << >> << /K %s /Columns %ld /Rows %ld >> ]\n",