Output TIFF has problematic FillOrder

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
paulmelis
Posts: 2
Joined: 2011-03-21T07:57:43-07:00
Authentication code: 8675308

Output TIFF has problematic FillOrder

Post by paulmelis »

I'm using IM to create a fading-out image sequence of a single input image. I'm using the composite command with a changing blend factor to combine the input image with a black image. Both input and output are in TIFF, but I noticed that the output image uses a FillOrder of 2 (lsb-to-msb). From what I read about this tag it's very uncommon to use anything other than FillOrder=1 (msb-to-lsb). Furthermore, the input image has FillOrder=2 so I don't understand why it would change. The reason I actually ran into to this is that FFmpeg doesn't seem to be happy to process TIFF files with FillOrder=1 (not surprisingly).

Here's relevant info from the TIFF files and used composite command:

Code: Select all

paulmlocal@sara0140:~/interop_2011/anim_title$ tiffinfo water.tif 
TIFF Directory at offset 0x136a7e (1272446)
  Image Width: 1280 Image Length: 720
  Resolution: 100, 100 pixels/inch
  Bits/Sample: 8
  Compression Scheme: AdobeDeflate
  Photometric Interpretation: RGB color
  FillOrder: msb-to-lsb
  Orientation: row 0 top, col 0 lhs
  Samples/Pixel: 3
  Rows/Strip: 2
  Planar Configuration: single image plane
  Page Number: 0-1
  DocumentName: water2.tif
  Software: ImageMagick 6.5.7-8 2010-12-02 Q16 http://www.imagemagick.org
  Predictor: horizontal differencing 2 (0x2)

paulmlocal@sara0140:~/interop_2011/anim_title$ composite -blend 50 water.tif -size 1280x720 xc:black -depth 8 -compress Zip doh.tif             
              
paulmlocal@sara0140:~/interop_2011/anim_title$ tiffinfo doh.tif 
TIFF Directory at offset 0xe029a (918170)
  Image Width: 1280 Image Length: 720
  Resolution: 72, 72 (unitless)
  Bits/Sample: 8
  Compression Scheme: AdobeDeflate
  Photometric Interpretation: RGB color
  FillOrder: lsb-to-msb
  ^^^^^^^^^^^^^^^^^^^^^^^
  Orientation: row 0 top, col 0 lhs
  Samples/Pixel: 3
  Rows/Strip: 720
  Planar Configuration: single image plane
  Page Number: 0-1
  DocumentName: doh.tif
  Software: ImageMagick 6.5.7-8 2010-12-02 Q16 http://www.imagemagick.org
  Predictor: horizontal differencing 2 (0x2)
This is on an Ubuntu 10.04.2 LTS x86_64 system, with IM 6.5.7-8 (7:6.5.7.8-1ubuntu1.1)
paulmelis
Posts: 2
Joined: 2011-03-21T07:57:43-07:00
Authentication code: 8675308

Re: Output TIFF has problematic FillOrder

Post by paulmelis »

The TIFF writer option

Code: Select all

-define tiff:fill-order=msb
seems to have be added only in 6.6.2-10, unfortunately.

For now, I use the workaround of using a second image file (containing all black pixels), instead of

Code: Select all

-size 3840x2160 xc:black
.
Post Reply