Skip to content

Instantly share code, notes, and snippets.

Created May 9, 2015 15:47
What would you like to do?
Resizing images from one folder to another with ImageMagick and GNU Make
source_files := $(wildcard src/*.jpg)
resized_files := $(source_files:src/%.jpg=resized/%.jpg)
all: $(resized_files)
resized/%.jpg: src/%.jpg
convert $< -resize 1920x1080 $@
Copy link

dwo commented May 9, 2015

Run with make -j2 to resize 2 at a time, make -j4 to resize 4 at a time etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment