imagequant 2.9.0

Convert 24/32-bit images to 8-bit palette with alpha channel. Bindings for libimagequant that powers pngquant lossy PNG compressor.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
OUT_DIR?=vendor
LIQDIR=$(OUT_DIR)/lib

all: $(LIQDIR)/libimagequant.a

$(LIQDIR)/libimagequant.a:: $(LIQDIR)
	make -C $(LIQDIR) static

$(LIQDIR):
	curl -L https://pngquant.org/pngquant-2.9.0-src.tar.gz | tar xz -C $(OUT_DIR) --strip-components=1

clean:
	make -C $(LIQDIR) clean

.PHONY: all clean