-+define tiff properties not working in IM 6.8.8.8 beta

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

-+define tiff properties not working in IM 6.8.8.8 beta

Post by fmw42 »

see
viewtopic.php?f=1&t=25066&p=108472#p108472

Possibly the colon between tiff and rows-per-strip (tiff:rows-per-strip) may be causing confusion in parsing?
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: -+define tiff properties not working in IM 6.8.8.8 beta

Post by magick »

  • # convert -size 100x100 xc:white -units PixelsPerInch -define tiff:rows-per-strip=100 -density 400 -depth 8 -type Bilevel -colorspace Gray -compress None outfile.tif
    # tiffinfo outfile.tif | grep Rows
    Rows/Strip: 100
    # identify -verbose outfile.tif | grep rows-per-strip
    tiff:rows-per-strip: 81
It does set Rows/Strip to 100. However, ImageMagick determines the rows-per-strip attribute with the TIFF delegate library call:
  • TIFFGetField(tiff,TIFFTAG_ROWSPERSTRIP,&rows_per_strip);
Its returning 81. There may be an internal limit for rows-per-strip in the TIFF delegate library depending on the image dimensions because if you define it to be less than 81, it always returns that value:
  • # convert -size 100x100 xc:white -units PixelsPerInch -define tiff:rows-per-strip=80 -density 400 -depth 8 -type Bilevel -colorspace Gray -compress None outfile.tif
    # tiffinfo outfile.tif | grep Rows
    Rows/Strip: 80
    # identify -verbose outfile.tif | grep rows-per-strip
    tiff:rows-per-strip: 80
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: -+define tiff properties not working in IM 6.8.8.8 beta

Post by fmw42 »

what about the +define to remove the fields? That does not seem to work.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: -+define tiff properties not working in IM 6.8.8.8 beta

Post by magick »

  • what about the +define to remove the fields? That does not seem to work.
Which fields? Some fields are required.

The user wanted to remove the tiff:... fields. Also when I tried +define "*", I got an error message. see the reference in my first post above.
Post Reply