Skip to content

Instantly share code, notes, and snippets.

🆔
🔞 📵 🚭

in-in

View GitHub Profile
@in-in
in-in / imageresize.sh
Last active Feb 19, 2018
resize images two and three times
View imageresize.sh
#! /bin/bash
# prerequisites: libvips http://www.vips.ecs.soton.ac.uk
# http://www.vips.ecs.soton.ac.uk/supported/current/doc/html/libvips/libvips-resample.html#vips-resize
# filename should looks like: `filename.jpg`
cwd=$(pwd)
# re='_([0-9]{2,4})\.(jpg|png)'
re='\.(jpg|jpeg|png)'
You can’t perform that action at this time.