From 35c76cf0f833f05b109b6822d5d5b9ea22197f73 Mon Sep 17 00:00:00 2001 From: Nico Rey Date: Sat, 3 Oct 2020 22:29:43 -0300 Subject: [PATCH] add thumb --- receive_meteor.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/receive_meteor.sh b/receive_meteor.sh index 816a40f..5f3a019 100755 --- a/receive_meteor.sh +++ b/receive_meteor.sh @@ -54,6 +54,7 @@ if [ -f "${METEOR_OUTPUT}/${3}.dec" ]; then log "Rectifying image to adjust aspect ratio" "INFO" python3 "${NOAA_HOME}/rectify.py" "${NOAA_OUTPUT}/images/${3}-122.bmp" + /usr/bin/convert -thumbnail 300 "${NOAA_OUTPUT}/images/${3}-rectified.jpg" "${NOAA_OUTPUT}/images/thumb/${3}-rectified.jpg" rm "${METEOR_OUTPUT}/${3}-122.bmp" rm "${METEOR_OUTPUT}/${3}.bmp"