Created
January 24, 2018 12:15
-
-
Save innermond/cfe69c4e5a6f66503c92434c7ae7af7a to your computer and use it in GitHub Desktop.
Create the meat for images array needed for pig.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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