Skip to content

Instantly share code, notes, and snippets.

@yasufumy
Last active May 2, 2017 17:48
Show Gist options
  • Save yasufumy/02bc967597db37b9ee396fe019808271 to your computer and use it in GitHub Desktop.
Save yasufumy/02bc967597db37b9ee396fe019808271 to your computer and use it in GitHub Desktop.
ls -t * | xargs -I{} file {} | grep "PNG image data" | cut -d ":" -f 1 | parallel -j 8 convert "{}" -colorspace sRGB -type truecolor "target/{.}.jpg"
@yasufumy
Copy link
Author

yasufumy commented May 2, 2017

use the command below to check commands to be executed

ls -t * | xargs -I{} file {} | grep "PNG image data" | cut -d ":" -f 1 | parallel -j 8 --dry-run convert "{}" -colorspace sRGB -type truecolor "target/{.}.jpg"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment