Difference between revisions of "Cropped TIFF"

From PanoTools.org Wiki
Jump to: navigation, search
Line 11: Line 11:
 
   p f0 w1000 h500 v120 n"TIFF_m c:LZW r:CROP"
 
   p f0 w1000 h500 v120 n"TIFF_m c:LZW r:CROP"
  
[[enblend]] can read these '''cropped TIFF''' files since version 2.4, so this technique is useful when working with enblend.  Additionally the [[gimp]] image editor can open multilayer '''cropped TIFF''' files directly, though it cannot save them.  It can be convenient to edit the alpha masks in multi-layer TIFFs before passing them to enblend; see [[Multi-Layer TIFF editing with the Gimp]].
+
[[enblend]] can read these '''cropped TIFF''' files since version 2.4, so this technique is useful when working with enblend.  Additionally the [[gimp]] image editor can open multilayer '''cropped TIFF''' files directly, though it cannot save them.  It can be convenient to edit the alpha masks in multi-layer TIFFs before passing them to enblend with the help of a script; see [[Multi-Layer TIFF editing with the Gimp]].
  
 
[[Category:Glossary]]
 
[[Category:Glossary]]

Revision as of 00:25, 9 October 2006

A common situation when stitching images together is that most of the output image or layer is empty. This happens particularly during perspective correction or when creating High resolution partial panoramas from large numbers of photos.

This is ok except that panorama tools will labouriously process the geometry for all these empty pixels, which then consume valuable memory and disc space.

The TIFF specification allows for an image canvas to include a smaller image at an offset within the larger area using the XPOSITION, YPOSITION, TIFFTAG_PIXAR_IMAGEFULLWIDTH and TIFFTAG_PIXAR_IMAGEFULLHEIGHT TIFF tags, which is ideal for a typical panoramic image that is mostly empty space.

hugin, nona and PTmender can be told to create such cropped TIFF files by adding r:CROP as a TIFF option to the panorama format section of the p line in a stitching script. Two TIFF output formats are supported, TIFF_m and TIFF_multilayer (note that TIFF_multilayer is only supported by nona).

For example the following p line produces multiple cropped TIFF files with LZW compression:

 p f0 w1000 h500 v120 n"TIFF_m c:LZW r:CROP"

enblend can read these cropped TIFF files since version 2.4, so this technique is useful when working with enblend. Additionally the gimp image editor can open multilayer cropped TIFF files directly, though it cannot save them. It can be convenient to edit the alpha masks in multi-layer TIFFs before passing them to enblend with the help of a script; see Multi-Layer TIFF editing with the Gimp.