The PNG Guide is an eBook based on Greg Roelofs' book, originally published by O'Reilly. |
![]() |
Home ![]() ![]() ![]() |
|
![]() ![]() ![]() ![]() ![]() ![]() |
|
Tiff2pngTiff2png's main features as a conversion program are its support for TIFF sample depths up to 16 bits and its support for transparency and alpha channels. Unlike gif2png, Tiff2png requires an explicit output filename and is therefore somewhat less convenient for batch conversions: tiff2png foo.tiff foo.png It is also completely quiet by default, although it supports a -v option to turn on its verbose mode: tiff2png -v foo.tiff foo.png Tiff2png: foo.tiff TIFF Directory at offset 0x10008 Image Width: 128 Image Length: 128 Resolution: 72, 72 pixels/inch Bits/Sample: 8 Compression Scheme: None Photometric Interpretation: RGB color Extra Samples: 1<assoc-alpha> Samples/Pixel: 4 Rows/Strip: 16 Planar Configuration: single image plane Tiff2png: 128x128x32 image Tiff2png: 8 bits/sample, 4 samples/pixel Tiff2png: maxval=255 Tiff2png: color-type = truecolor + alpha Tiff2png: bit-depth = 8 Unfortunately, Tiff2png does not distinguish between associated (premultiplied) alpha and unassociated alpha. The latter is the only form supported by PNG, but Tiff2png will happily store an associated alpha channel without conversion, as in the previous example. At any rate, Tiff2png is capable of converting at least some TIFF images with
alpha transparency correctly, which gives it an advantage over the current
NetPBM suite and pnmtopng. Although TIFF is subject to the same LZW licensing
issues GIF is, it supports several other compression methods (including no
compression) and is therefore less of a problem for program authors. In
Tiff2png's case, all TIFF manipulations are handled via Sam Leffler's free
|
|
Home ![]() ![]() ![]() |