pkg.go.dev
Open in
urlscan Pro
2600:1901:0:f535::
Public Scan
Submitted URL: http://golang.org/x/image/tiff
Effective URL: https://pkg.go.dev/golang.org/x/image/tiff
Submission: On June 12 via api from US — Scanned from DE
Effective URL: https://pkg.go.dev/golang.org/x/image/tiff
Submission: On June 12 via api from US — Scanned from DE
Form analysis
3 forms found in the DOM/search
<form class="go-InputGroup go-ShortcutKey go-SearchForm-form" action="/search" data-shortcut="/" data-shortcut-alt="search" data-gtmc="search form" aria-label="Search for a package" role="search">
<input name="q" class="go-Input js-searchFocus" aria-label="Search for a package" type="search" autocapitalize="off" autocomplete="off" autocorrect="off" spellcheck="false" placeholder="Search packages or symbols" value="">
<input name="m" value="" hidden="">
<button class="go-Button go-Button--inverted" aria-label="Submit search">
<img class="go-Icon" height="24" width="24" src="/static/shared/icon/search_gm_grey_24dp.svg" alt="">
</button>
</form>
DIALOG
<form method="dialog" data-gmtc="jump to form" aria-label="Jump to Identifier">
<div class="Dialog-title go-Modal-header">
<h2>Jump to</h2>
<button class="go-Button go-Button--inline" type="button" data-modal-close="" data-gtmc="modal button" aria-label="Close">
<img class="go-Icon" height="24" width="24" src="/static/shared/icon/close_gm_grey_24dp.svg" alt="">
</button>
</div>
<div class="JumpDialog-filter">
<input class="JumpDialog-input go-Input" autocomplete="off" type="text">
</div>
<div class="JumpDialog-body go-Modal-body">
<div class="JumpDialog-list"></div>
</div>
<div class="go-Modal-actions">
<button class="go-Button" data-test-id="close-dialog">Close</button>
</div>
</form>
DIALOG
<form method="dialog">
<div class="go-Modal-header">
<h2>Keyboard shortcuts</h2>
<button class="go-Button go-Button--inline" type="button" data-modal-close="" data-gtmc="modal button" aria-label="Close">
<img class="go-Icon" height="24" width="24" src="/static/shared/icon/close_gm_grey_24dp.svg" alt="">
</button>
</div>
<div class="go-Modal-body">
<table>
<tbody>
<tr>
<td class="ShortcutsDialog-key">
<strong>?</strong>
</td>
<td> : This menu</td>
</tr>
<tr>
<td class="ShortcutsDialog-key">
<strong>/</strong>
</td>
<td> : Search site</td>
</tr>
<tr>
<td class="ShortcutsDialog-key">
<strong>f</strong> or <strong>F</strong>
</td>
<td> : Jump to</td>
</tr>
<tr>
<td class="ShortcutsDialog-key"><strong>y</strong> or <strong>Y</strong></td>
<td> : Canonical URL</td>
</tr>
</tbody>
</table>
</div>
<div class="go-Modal-actions">
<button class="go-Button" data-test-id="close-dialog">Close</button>
</div>
</form>
Text Content
Skip to Main Content * Why Go * Case Studies Common problems companies solve with Go * Use Cases Stories about how and why companies use Go * Security Policy How Go can help keep you secure by default * Learn * Docs * Effective Go Tips for writing clear, performant, and idiomatic Go code * Go User Manual A complete introduction to building software with Go * Standard library Reference documentation for Go's standard library * Release Notes Learn what's new in each Go release * Packages * Community * Recorded Talks Videos from prior events * Meetups Meet other local Go developers * Conferences Learn and network with Go developers from around the world * Go blog The Go project's official blog. * Go project Get help and stay informed from Go * Get connected * Why Go Why Go * Case Studies * Use Cases * Security Policy * Learn * Docs Docs * Effective Go * Go User Manual * Standard library * Release Notes * Packages * Community Community * Recorded Talks * Meetups * Conferences * Go blog * Go project * Get connected 1. Discover Packages 2. golang.org/x/image 3. tiff TIFF package Version: v0.17.0 Opens a new window with list of versions in this module. Latest Latest This package is not in the latest version of its module. Go to latest Published: Jun 4, 2024 License: BSD-3-Clause Opens a new window with license information. Imports: 13 Opens a new window with list of imports. Imported by: 720 Opens a new window with list of known importers. Main Versions Licenses Imports Imported By DETAILS * Valid go.mod file The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go. * Redistributable license Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed. * Tagged version Modules with tagged versions give importers more predictable builds. * Stable version When a project reaches major version v1 it is considered stable. * Learn more about best practices REPOSITORY cs.opensource.google/go/x/image LINKS * Report a Vulnerability * Open Source Insights Jump to ... * Documentation * Overview * Index * Constants * Variables * Functions * Decode(r) * DecodeConfig(r) * Encode(w, m, opt) * Types * type CompressionType * type FormatError * (e) Error() * type Options * type UnsupportedError * (e) Error() * Source Files * Directories DocumentationSource FilesDirectoriesOverviewIndexConstantsVariablesFunctionsTypesDecode(r)DecodeConfig(r)Encode(w, m, opt)type CompressionTypetype FormatErrortype Optionstype UnsupportedError(e) Error()(e) Error() DOCUMENTATION ¶ OVERVIEW ¶ Package tiff implements a TIFF image decoder and encoder. The TIFF specification is at http://partners.adobe.com/public/developer/en/tiff/TIFF6.pdf INDEX ¶ * func Decode(r io.Reader) (img image.Image, err error) * func DecodeConfig(r io.Reader) (image.Config, error) * func Encode(w io.Writer, m image.Image, opt *Options) error * type CompressionType * type FormatError * * func (e FormatError) Error() string * type Options * type UnsupportedError * * func (e UnsupportedError) Error() string CONSTANTS ¶ This section is empty. VARIABLES ¶ This section is empty. FUNCTIONS ¶ FUNC DECODE ¶ func Decode(r io.Reader) (img image.Image, err error) 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. 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. FUNC ENCODE ¶ func Encode(w io.Writer, m image.Image, opt *Options) error 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. TYPES ¶ TYPE COMPRESSIONTYPE ¶ type CompressionType int CompressionType describes the type of compression used in Options. const ( Uncompressed CompressionType = iota Deflate LZW CCITTGroup3 CCITTGroup4 ) Constants for supported compression 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 OPTIONS ¶ type Options struct { // Compression is the type of compression used. Compression CompressionType // 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. Predictor bool } Options are the encoding parameters. 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 SOURCE FILES ¶ View all Source files * buffer.go * compress.go * consts.go * reader.go * writer.go DIRECTORIES ¶ Show internal Collapse all Path Synopsis lzw Package lzw implements the Lempel-Ziv-Welch compressed data format, described in T. A. Welch, “A Technique for High-Performance Data Compression”, Computer, 17(6) (June 1984), pp 8-19. Package lzw implements the Lempel-Ziv-Welch compressed data format, described in T. A. Welch, “A Technique for High-Performance Data Compression”, Computer, 17(6) (June 1984), pp 8-19. Click to show internal directories. Click to hide internal directories. Why Go Use Cases Case Studies Get Started Playground Tour Stack Overflow Help Packages Standard Library Sub-repositories About Go Packages About Download Blog Issue Tracker Release Notes Brand Guidelines Code of Conduct Connect Twitter GitHub Slack r/golang Meetup Golang Weekly * Copyright * Terms of Service * Privacy Policy * Report an Issue * Theme Toggle * Shortcuts Modal JUMP TO Close KEYBOARD SHORTCUTS ? : This menu / : Search site f or F : Jump to y or Y : Canonical URL Close go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic. Learn more. Okay