Page 1 of 1

-+define tiff properties not working in IM 6.8.8.8 beta

Posted: 2014-02-23T18:06:05-07:00
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?

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

Posted: 2014-02-24T05:36:54-07:00
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

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

Posted: 2014-02-24T10:44:50-07:00
by fmw42
what about the +define to remove the fields? That does not seem to work.

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

Posted: 2014-02-24T10:47:08-07:00
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.