Skip to content

Instantly share code, notes, and snippets.

@innermond
Created January 24, 2018 12:15
Show Gist options
  • Save innermond/cfe69c4e5a6f66503c92434c7ae7af7a to your computer and use it in GitHub Desktop.
Save innermond/cfe69c4e5a6f66503c92434c7ae7af7a to your computer and use it in GitHub Desktop.
Create the meat for images array needed for pig.js
#!/bin/bash
CRT=$PWD
cd "$1"
identify -format "{filename: '%M', aspectRatio: %[fx:(w/h)]},\n" ./*.jpg > "$CRT/data"
cd -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment