sigrid/imgtools

Description
# imgtools

Some random image-related tools.  Usually they are drop-in
replacements where possible.

## iconv

Converts a Plan 9 image from one format to another.  For example,
`iconv -c rgb16 <a.img >b.img` will convert `a.img` to RGB16 and save
it as `b.img`.

"Channels" (`-c` argument) are defined at `/sys/include/draw.h:133`.
`rgb16`, `RGB16`, `r5g6b5` and `R5G6B5` mean the same thing
(case-insensitive).

## resample

A faster drop-in replacement of `resample(1)` with some more features.
Last 5 commits (shortlog)
Date Author Short message Commit hash
2021-02-17 Sigrid iconv: add an optional filename argument 4a924242a625638ac4e2c7e6169950d981d36e2e
2021-02-17 Sigrid iconv: add -u to produce uncompressed image, -r to skip the header 248d690e93e18139e11a75fb4425832357082383
2021-01-20 Sigrid resample: fix aspect-preserving scaling 94794a38886af90b1af32cce3156db015f74339a
2021-01-20 Sigrid rename convert to iconv a8fcdbe57c250d325d48563bf17886d85e13af42
2021-01-20 Sigrid resample: free-form combined crop/resampling f93909b95a5ec11c13bea21d8f024264714f7e57
Files (browse)
.gitignore
LICENSE
README.md
iconv.c
mkfile
resample.c
stb_image_resize.h