Skip to content

Commit

Permalink
Merge pull request #363 from colinluthier/Empty-Image-Bug-Patch
Browse files Browse the repository at this point in the history
Empty image bug patch
  • Loading branch information
colinluthier committed May 16, 2021
2 parents b1477e8 + dd4d1b2 commit cdb95e3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/receive_noaa.sh
Original file line number Diff line number Diff line change
Expand Up @@ -234,10 +234,10 @@ for enhancement in $ENHANCEMENTS; do
${IMAGE_PROC_DIR}/${proc_script} $map_overlay "${AUDIO_FILE_BASE}.wav" "${IMAGE_FILE_BASE}-$enhancement.jpg" >> $NOAA_LOG 2>&1

if [ -f "${IMAGE_FILE_BASE}-$enhancement.jpg" ]; then
${IMAGE_PROC_DIR}/noaa_normalize_annotate.sh "${IMAGE_FILE_BASE}-$enhancement.jpg" "${IMAGE_FILE_BASE}-$enhancement.jpg" 90 >> $NOAA_LOG 2>&1
filesize=$(wc -c "${IMAGE_FILE_BASE}-$enhancement.jpg" | awk '{print $1}')
${IMAGE_PROC_DIR}/noaa_normalize_annotate.sh "${IMAGE_FILE_BASE}-$enhancement.jpg" "${IMAGE_FILE_BASE}-$enhancement.jpg" 90 >> $NOAA_LOG 2>&1
${IMAGE_PROC_DIR}/thumbnail.sh 300 "${IMAGE_FILE_BASE}-$enhancement.jpg" "${IMAGE_THUMB_BASE}-$enhancement.jpg" >> $NOAA_LOG 2>&1
filesize=$(wc -c "${IMAGE_FILE_BASE}-$enhancement.jpg" | awk '{print $1}')


# check that the file actually has content
if [ $filesize -gt 20480 ]; then
# at least one good image
Expand Down

0 comments on commit cdb95e3

Please sign in to comment.