package tiff
Import Path
golang.org/x/image/tiff (on go.dev)
Dependency Relation
imports 15 packages, and imported by one package
Involved Source Files
buffer.go
compress.go
consts.go
Package tiff implements a TIFF image decoder and encoder.
The TIFF specification is at http://partners.adobe.com/public/developer/en/tiff/TIFF6.pdf
writer.go
Package-Level Type Names (total 4)
CompressionType describes the type of compression used in Options.
const CCITTGroup3
const CCITTGroup4
const Deflate
const LZW
const Uncompressed
A FormatError reports that the input is not a valid TIFF image.
( FormatError) Error() string
FormatError : error
Options are the encoding parameters.
Compression is the type of compression used.
Predictor determines whether a differencing predictor is used;
if true, instead of each pixel's color, the color difference to the
preceding one is saved. This improves the compression for certain
types of images and compressors. For example, it works well for
photos with Deflate compression.
func Encode(w io.Writer, m image.Image, opt *Options) error
Package-Level Functions (total 3)
Decode reads a TIFF image from r and returns it as an image.Image.
The type of Image returned depends on the contents of the TIFF.
DecodeConfig returns the color model and dimensions of a TIFF image without
decoding the entire image.
Encode writes the image m to w. opt determines the options used for
encoding, such as the compression type. If opt is nil, an uncompressed
image is written.
Package-Level Constants (total 5)
Constants for supported compression types.
Constants for supported compression types.
Constants for supported compression types.
Constants for supported compression types.
Constants for supported compression types.
![]() |
The pages are generated with Golds v0.8.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |