Iterates over the decimals of
quality
inimagemagick.resize({ quality })
so you don't have to.
In order to get a bunch of images to have the same dimensions AND the same-ish mass. This might be a bit ocd on one's behalf, but I used manually find the right quality to produce a batch of equal weight.
NOTE: This piece of software is only good for shrinking images.
$ git clone https://github.com/panstav/bulk-resize.git
$ cd bulk-resize && npm install
// stretching is good for you
$ npm link
Check it out!
$ bulk-resize --help
If you want to resize some images at /path/to/lots-of-images
to 400px wide at 30kb
$ cd /path/to/lots-of-images
$ bulk-resize -t 30 -w 400