https://github.com/recolude/imgconv
Utilities around dealing with images inside of game dev. Inspired by my hate for TGA.
https://github.com/recolude/imgconv
game-development image-processing
Last synced: 6 months ago
JSON representation
Utilities around dealing with images inside of game dev. Inspired by my hate for TGA.
- Host: GitHub
- URL: https://github.com/recolude/imgconv
- Owner: recolude
- License: mit
- Created: 2021-10-24T17:27:52.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-03-09T00:27:43.000Z (over 3 years ago)
- Last Synced: 2025-01-23T04:41:28.534Z (over 1 year ago)
- Topics: game-development, image-processing
- Language: Go
- Homepage:
- Size: 20.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Image Conversion
Utilities around dealing with images inside of game dev. Inspired by my hate for TGA.
## Install
```
go install ./cmd/imgconv
```
## Examples
### TGA to PNG
Convert all TGAs found to PNG, optionally resizing them along in the process
```bash
imgconv ttp -r -s 2048
# Match only on AO textures
imgconv ttp -r -s 1024 *_AO.tga
```
### Resize
Shrink all PNGs found that are above the maximum resolution provided, in this example, 2048x2048.
```
imgconv resize -r -m 2048
```