Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ftrvxmtrx/tga
Go package for decoding and encoding TARGA image format
https://github.com/ftrvxmtrx/tga
Last synced: about 2 months ago
JSON representation
Go package for decoding and encoding TARGA image format
- Host: GitHub
- URL: https://github.com/ftrvxmtrx/tga
- Owner: ftrvxmtrx
- License: mit
- Archived: true
- Created: 2012-10-08T01:09:20.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2015-05-24T08:11:41.000Z (over 9 years ago)
- Last Synced: 2024-07-31T20:52:01.810Z (5 months ago)
- Language: Go
- Size: 194 KB
- Stars: 33
- Watchers: 4
- Forks: 14
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.MIT
Awesome Lists containing this project
- awesome-go - tga - Package tga is a TARGA image format decoder/encoder. (Images / Search and Analytic Databases)
- awesome-go - tga - Go package for decoding and encoding TARGA image format - ★ 19 (Images)
- awesome-go-extra - ARCHIVED - 10-08T01:09:20Z|2015-05-24T08:11:41Z| (Images / Advanced Console UIs)
- awesome-go-zh - tga
README
# tga
tga is a [Go](http://golang.org/) package for decoding and encoding TARGA image
format.It supports RLE and raw TARGA images with 8/15/16/24/32 bits per pixel,
monochrome, truecolor and colormapped images. It also correctly handles origins,
attribute type in extensions area and successfully passes TGA 2.0 conformance
suite (http://googlesites.inequation.org/tgautilities).Encoding an image doesn't involve conversion if it's `image.Gray`, `image.RGBA`
or `image.NRGBA`. Other types are converted to `image.NRGBA` prior to encoding.## Installation
$ go get github.com/ftrvxmtrx/tga
## Documentation and examples
[tga on godoc.org](http://godoc.org/github.com/ftrvxmtrx/tga)
## License
Code is licensed under the MIT license (see `LICENSE.MIT`).
Several sample image files in `testdata` directory are copyright to TrueVision,
Inc. and are freely available, free of charge and under no licensing terms at
http://googlesites.inequation.org/tgautilitiesThese sample images (and those which were converted from them) are:
```
bw.png
cbw8.tga
ccm8.tga
color.png
ctc16.tga
ctc24.tga
ctc32.tga
ubw8.tga
ucm8.tga
utc16.tga
utc24.tga
utc32.tga
```