/ Published in: Bash
This script allows to resample images from whatever DPI to 75 DPI (screen resolution) in batch. I use it to prepare smallsize images of scans of my IDs, etc...
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
cd ~/org/id for fi in $(/bin/ls -1 passeport_600dpi/*); do fo="$(echo $fi | sed 's/_[[:digit:]]\+dpi//g')"; echo convert-im6 $fi -units PixelsPerInch -resample 75 $fo; done