tiff

package module
v0.0.0-...-fe29458 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 18, 2023 License: BSD-3-Clause Imports: 15 Imported by: 1

README

TIFF codec for HDR images

GoDoc

A Golang TIFF codec for HDRi formats. This package is meant to be used with mdouchement/hdr.

  • Only decoder is implemented.
  • A subset of DNG (Digital Negative) is supported. There still missing parts in the basic processing workflow.

Photometric Interpretation

  • RGB - 32 bit floating point
  • LogL - Luminance GrayScale (LogLuv without u & v parts)
  • LogLuv - True colors (32 bits only. No support of 24 bits at the moment)
  • CFA - Color Filter Array

Compression

  • None (Uncompressed)
  • LZW
  • Deflate (old and new)
  • PackBits
  • SGI Log RLE

Architecture

Object Description
reader Decodes the image
decoder Decodes the raster
idf Parses the header
tag Parses tag's values

License

BSD-style

This package carries the same license as Golang's image/tiff package. Because all this package's skeleton and some piece of code come from the image/tiff package.

Contributing

All PRs are welcome.

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Debug = false

Debug activates debug prints on stdout.

Functions

func Decode

func Decode(r io.Reader) (m image.Image, err error)

Decode reads a DNG image from r and returns an image.Image.

func DecodeConfig

func DecodeConfig(r io.Reader) (image.Config, error)

DecodeConfig returns the color model and dimensions of a TIFF image without decoding the entire image.

Types

type FormatError

type FormatError string

A FormatError reports that the input is not a valid TIFF image.

func (FormatError) Error

func (e FormatError) Error() string

type InternalError

type InternalError string

An InternalError reports that an internal error was encountered.

func (InternalError) Error

func (e InternalError) Error() string

type UnsupportedError

type UnsupportedError string

An UnsupportedError reports that the input uses a valid but unimplemented feature.

func (UnsupportedError) Error

func (e UnsupportedError) Error() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL