mirror of
https://github.com/balzack/databag.git
synced 2025-02-12 11:39:17 +00:00
6 lines
173 B
Bash
6 lines
173 B
Bash
|
#!/bin/bash
|
||
|
set -e
|
||
|
TMPFILE=$(mktemp /tmp/databag-XXXXX)
|
||
|
ffmpeg -ss 0 -i $1 -y -vframes 1 -q:v 2 $TMPFILE.jpg
|
||
|
convert -strip $TMPFILE.jpg -auto-orient -resize '640x640>' $2
|