commit: @ ./vcs commit edit: @ ${EDITOR} src/inc/$(shell pushd src/inc >/dev/null && git ls-files -c . | fzf -m --bind=ctrl-c:accept-or-print-query) .PHONY: commit edit IN ?= OUT ?= SCALE ?= x400 compress: # => https://kokorobot.ca/site/image_optimization.html magick $(IN) \ -sampling-factor 4:2:0 \ -strip \ -quality 85 \ -interlace line \ -scale $(SCALE) \ $(OUT) exiftool -overwrite_original_in_place -all= -tagsFromFile @ -Orientation $(OUT) # -colorspace sRGB \ dither: # => https://legacy.imagemagick.org/Usage/quantize/#ordered-dither magick $(IN) \ -sampling-factor 4:2:0 \ -strip \ -quality 85 \ -interlace line \ -ordered-dither o3x3 \ -scale $(SCALE) \ $(OUT) # -colorspace Gray \ .PHONY: compress dither readcover: SCALE = x150 readcover: OUT = ./media/content/read/$(notdir $(IN)) readcover: compress .PHONY: readcover