Batch image resample


/ Published in: Bash
Save to your folder(s)

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...


Copy this code and paste it in your HTML
  1. cd ~/org/id
  2. 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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.