mirror of
https://github.com/xemu-project/xemu-website.git
synced 2024-11-22 19:09:59 +00:00
Just use convert
in thumbnail script
This commit is contained in:
parent
902d5d5f68
commit
534be1edea
@ -1,12 +1,9 @@
|
||||
#!/bin/bash -ex
|
||||
INPUT=$1
|
||||
OUTPUT_RESIZED=`dirname $1`/cover_front_thumbnail_tmp.png
|
||||
OUTPUT_COMPRESSED=`dirname $1`/cover_front_thumbnail.jpg
|
||||
if [[ -e "$OUTPUT_COMPRESSED" ]]; then
|
||||
echo "$OUTPUT_COMPRESSED already exists"
|
||||
exit 0
|
||||
fi
|
||||
echo "CONVERTING $INPUT"
|
||||
convert $INPUT -quality 100 -resize 256 -density 72x72 $OUTPUT_RESIZED
|
||||
./guetzli/bin/Release/guetzli $OUTPUT_RESIZED $OUTPUT_COMPRESSED
|
||||
rm $OUTPUT_RESIZED
|
||||
convert $INPUT -quality 85 -resize 256 -density 72x72 $OUTPUT_COMPRESSED
|
||||
|
Loading…
Reference in New Issue
Block a user