[magick-users] Problems 5.4.8 by convert html->tif, tif->pdf

Gerhard Luehning gluehning at nasus.de
Tue Sep 17 15:32:25 PDT 2002


Hello magick-users,

I have used ImageMagick about 2 years without problems
to create a html -> tif, add this tif to with multipage tif to a multipagetif
and optional convert it to a pdf document.

I had the old version on another computer, so I can compare both version:
ImageMagick 4.2.9 99/09/01:    no problems, small pdf output, great result
ImageMagick 5.4.8 08/15/02 Q8: no group4 compression, large pdf output.

Are there options I can use in the actual version, to have the same result as
in the old version.
 
In my following example I only html->tif->pdf with both versions 



If I used ImageMagick 4.2.9 99/09/01

In my example I only convert html->tif->pdf 

Here the verbose mode:
---------------------------
convert -verbose -density 300x300 -page 595x842+90  -compress group4  deckblatt.html deckblatt.tif

convert: html2ps -U -o /tmp/magicuGA56o deckblatt.html.
convert: /usr/bin/gs -dMaxBitmap=300000000 -sDEVICE=pnmraw -q -dNOPAUSE -dSAFER -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -g2479x2970 -r300x300  -sOutputFile="/tmp/magic6vsvMM" -- "/tmp/magicqh0cNu" -c quit.
/tmp/magicuGA56o=>deckblatt.html 2479x2970+90+0 PseudoClass 256c 186kb PS 6s
TIFF Directory at offset 0x0
  Image Width: 2479 Image Length: 2970
  Resolution: 300, 300 (unitless)
  Bits/Sample: 1
  Compression Scheme: CCITT Group 4
  Photometric Interpretation: min-is-white
  FillOrder: msb-to-lsb
  Software: "@(#)ImageMagick 4.2.9 99/09/01 cristy at mystic.es.dupont.com"
  Document Name: "deckblatt.tif"
  Image Description: " Image generated by GNU Ghostscript (device=pnmraw)\n"
  Orientation: row 0 top, col 0 lhs
  Samples/Pixel: 1
  Rows/Strip: 2970
  Planar Configuration: single image plane
/tmp/magicuGA56o=>deckblatt.tif 2479x2970+90+0 PseudoClass 2c TIF 11s
----------------------------------------------------------------------------------

convert -verbose -compress group4 deckblatt.tif deckblatt.pdf
-----------------------------------------------------------------------------------
TIFF Directory at offset 0xd164
  Image Width: 2479 Image Length: 2970
  Resolution: 300, 300 (unitless)
  Bits/Sample: 1
  Compression Scheme: CCITT Group 4
  Photometric Interpretation: min-is-white
  FillOrder: msb-to-lsb
  Software: "@(#)ImageMagick 4.2.9 99/09/01 cristy at mystic.es.dupont.com"
  Document Name: "deckblatt.tif"
  Image Description: " Image generated by GNU Ghostscript (device=pnmraw)\n"
  Orientation: row 0 top, col 0 lhs
  Samples/Pixel: 1
  Rows/Strip: 2970
  Planar Configuration: single image plane
deckblatt.tif 2479x2970 PseudoClass 2c 52kb TIFF 2s
TIFF Directory at offset 0x0
  Image Width: 2479 Image Length: 2970
  Resolution: 300, 300 (unitless)
  Bits/Sample: 1
  Compression Scheme: CCITT Group 4
  Photometric Interpretation: min-is-white
  FillOrder: msb-to-lsb
  Software: "@(#)ImageMagick 4.2.9 99/09/01 cristy at mystic.es.dupont.com"
  Document Name: "/tmp/magiczor3Kw"
  Image Description: " Image generated by GNU Ghostscript (device=pnmraw)\n"
  Orientation: row 0 top, col 0 lhs
  Samples/Pixel: 1
  Rows/Strip: 2970
  Planar Configuration: single image plane
deckblatt.tif=>deckblatt.pdf 2479x2970 PseudoClass 2c 68kb PDF 3s
-----------------------------------------------------------------------------------------

result:

  8899 Sep 17 13:22 deckblatt.html
 53969 Sep 17 13:24 deckblatt.tif
 69879 Sep 17 13:27 deckblatt.pdf

#################################################################################################

I have installed a new computer with new linux and new Imagemagick:
ImageMagick 5.4.8 08/15/02 Q8 
 
If I want to use the same options:
-----------------------------------------------------------------------
convert -verbose -density 300x300 -page 595x842+90  -compress group4  deckblatt.html deckblatt.tif 

convert: /usr/bin/html2ps -U -o "/tmp/magicSntMIY" "deckblatt.html" (Success).                                                                                                                                       
convert: /usr/bin/gs -q -dBATCH -dMaxBitmap=300000000 -dNOPAUSE -sDEVICE=pnmraw -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -g2479x3508 -r300x300  -sOutputFile=/tmp/magicQhYtxg -- "/tmp/magicFAmfmS" -c quit (Success).
deckblatt.html PS 595x842+90+0 DirectClass 8-bit 24mb 0.4u 0:01                                                                                                                                                          
TIFF Directory at offset 0x0                                                                                                                                                                                             
  Image Width: 2479 Image Length: 3508                                                                                                                                                                                   
  Resolution: 300, 300 (unitless)                                                                                                                                                                                        
  Bits/Sample: 8                                                                                                                                                                                                         
  Compression Scheme: CCITT Group 4                                                                                                                                                                                      
  Photometric Interpretation: min-is-black                                                                                                                                                                               
  FillOrder: msb-to-lsb                                                                                                                                                                                                  
  Software: "ImageMagick 5.4.8 08/15/02 Q8 http://www.imagemagick.org"                                                                                                                                                   
  Document Name: "deckblatt.tif"                                                                                                                                                                                         
  Image Description: " Image generated by GNU Ghostscript (device=pnmraw)\n"                                                                                                                                             
  Orientation: row 0 top, col 0 lhs                                                                                                                                                                                      
  Samples/Pixel: 1                                                                                                                                                                                                       
  Rows/Strip: 3508                                                                                                                                                                                                       
  Planar Configuration: single image plane                                                                                                                                                                               
convert_neu: Bits/sample must be 1 for Group 3/4 encoding/decoding. (deckblatt.tif).                                                                                                                                     
deckblatt.html=>deckblatt.tif TIF 595x842+90+0 DirectClass 8-bit 0.4u 0:01 
-----------------------------------------------------------------------   

But it does not support the Group 3/4 encoding/decoding  option any more.
How can I convert the html-page to a group4 tif?

If I take the tif I have generated with ImageMagick 4.2.9 and convert
it to pdf using 

------------------------------------------------------------------

convert -verbose -compress group4 deckblatt.tif deckblatt.pdf 

TIFF Directory at offset 0xd164                                                                                                                                                                                             
  Image Width: 2479 Image Length: 2970                                         
  Resolution: 300, 300 (unitless)                                              
  Bits/Sample: 1                                                               
  Compression Scheme: CCITT Group 4                                            
  Photometric Interpretation: min-is-white                                     
  FillOrder: msb-to-lsb                                                        
  Software: "@(#)ImageMagick 4.2.9 99/09/01 cristy at mystic.es.dupont.com"       
  Document Name: "deckblatt.tif"                                               
  Image Description: " Image generated by GNU Ghostscript (device=pnmraw)\n"   
  Orientation: row 0 top, col 0 lhs                                            
  Samples/Pixel: 1                                                             
  Rows/Strip: 2970                                                             
  Planar Configuration: single image plane                                     
deckblatt.tif TIFF 2479x2970 PseudoClass 2c 8-bit 53969b 0.3u 0:01             
deckblatt.tif=>deckblatt.pdf PDF 2479x2970 PseudoClass 2c 8-bit 286kb 1.5u 0:02

--------------------------------------------------------------------------------------

   8899 Sep 17 13:22 deckblatt.html 
   53969 Sep 17 13:58 deckblatt.tif
  293525 Sep 17 14:01 deckblatt.pdf

Why I get this very large pdf file?


Thanks for any helps! ;-)
  

-- 
Best regards,
 Gerhard                          mailto:gluehning at nasus.de




More information about the Magick-users mailing list