Skip to content

Instantly share code, notes, and snippets.

@loplex
Created May 4, 2019 19:07
Show Gist options
  • Save loplex/be593c32f78cc8fe321994cfcaa28cde to your computer and use it in GitHub Desktop.
Save loplex/be593c32f78cc8fe321994cfcaa28cde to your computer and use it in GitHub Desktop.
#!/bin/sh
# apt install exe-thumbnailer gridsite-clients
exe_file=$1
exe_file_abs=$(readlink -f "$exe_file")
output_file="${exe_file_abs}.png"
exe_file_url="file://$(urlencode -m "$exe_file_abs")"
set -x
echo "" | /usr/bin/exe-thumbnailer "$exe_file_abs" "$output_file" "$exe_file_url" || exit 1
set +x
echo "Created: $output_file"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment