commit | 9ce43ce66797c1ddfbf365dfd83e5e17a6a7717e | [log] [tgz] |
---|---|---|
author | Artyom Pervukhin <artyom.pervukhin@gmail.com> | Wed Oct 11 11:19:44 2017 +0300 |
committer | Nigel Tao <nigeltao@golang.org> | Thu Oct 12 05:44:11 2017 +0000 |
tree | 1be94a9ff1c56de04c4607217fe0676854a752d2 | |
parent | 58c7b1d160d87a86623b59237888e4ff1efb9a0f [diff] |
image/gif: make Decode only keep the first frame in memory Decode decodes entire GIF image and returns the first frame as an image.Image. There's no need for it to keep every decoded frame in memory except for the one it returns. Fixes #22199 Change-Id: I76b4bd31608ebc76a1a3df02e85c20eb80df7877 Reviewed-on: https://go-review.googlesource.com/69890 Reviewed-by: Nigel Tao <nigeltao@golang.org>
Go is an open source programming language that makes it easy to build simple, reliable, and efficient software.
Gopher image by Renee French, licensed under Creative Commons 3.0 Attributions license.
Our canonical Git repository is located at https://go.googlesource.com/go. There is a mirror of the repository at https://github.com/golang/go.
Unless otherwise noted, the Go source files are distributed under the BSD-style license found in the LICENSE file.
Official binary distributions are available at https://golang.org/dl/.
After downloading a binary release, visit https://golang.org/doc/install or load doc/install.html in your web browser for installation instructions.
If a binary distribution is not available for your combination of operating system and architecture, visit https://golang.org/doc/install/source or load doc/install-source.html in your web browser for source installation instructions.
Go is the work of hundreds of contributors. We appreciate your help!
To contribute, please read the contribution guidelines: https://golang.org/doc/contribute.html
Note that the Go project does not use GitHub pull requests, and that we use the issue tracker for bug reports and proposals only. See https://golang.org/wiki/Questions for a list of places to ask questions about the Go language.