Skip to content

Commit

Permalink
Update saveImage.sh: remove *** from non-ERRORs
Browse files Browse the repository at this point in the history
  • Loading branch information
EricClaeys authored Oct 27, 2023
1 parent 250d364 commit 9e875c4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/saveImage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ if [[ ${IMG_RESIZE} == "true" ]] ; then
display_error_and_exit "${ERROR_MSG}" "IMG_RESIZE"
fi

[[ ${ALLSKY_DEBUG_LEVEL} -ge 4 ]] && echo "*** ${ME}: Resizing '${CURRENT_IMAGE}' to ${IMG_WIDTH}x${IMG_HEIGHT}"
[[ ${ALLSKY_DEBUG_LEVEL} -ge 4 ]] && echo "${ME}: Resizing '${CURRENT_IMAGE}' to ${IMG_WIDTH}x${IMG_HEIGHT}"
if ! convert "${CURRENT_IMAGE}" -resize "${IMG_WIDTH}x${IMG_HEIGHT}" "${CURRENT_IMAGE}" ; then
echo -e "${RED}*** ${ME}: ERROR: IMG_RESIZE failed; not saving${NC}"
exit 4
Expand Down Expand Up @@ -227,7 +227,7 @@ if [[ ${CROP_IMAGE} == "true" ]]; then

if [[ -z ${ERROR_MSG} ]]; then
if [[ ${ALLSKY_DEBUG_LEVEL} -ge 4 ]]; then
echo -e "*** ${ME} Cropping '${CURRENT_IMAGE}' to ${CROP_WIDTH}x${CROP_HEIGHT}."
echo -e "${ME} Cropping '${CURRENT_IMAGE}' to ${CROP_WIDTH}x${CROP_HEIGHT}."
fi
convert "${CURRENT_IMAGE}" -gravity Center -crop "${CROP_WIDTH}x${CROP_HEIGHT}+${CROP_OFFSET_X}+${CROP_OFFSET_Y}" +repage "${CURRENT_IMAGE}"
if [ $? -ne 0 ] ; then
Expand All @@ -243,7 +243,7 @@ fi
# Stretch the image if required, but only at night.
if [[ ${DAY_OR_NIGHT} == "NIGHT" && ${AUTO_STRETCH} == "true" ]]; then
if [[ ${ALLSKY_DEBUG_LEVEL} -ge 4 ]]; then
echo "*** ${ME}: Stretching '${CURRENT_IMAGE}' by ${AUTO_STRETCH_AMOUNT}"
echo "${ME}: Stretching '${CURRENT_IMAGE}' by ${AUTO_STRETCH_AMOUNT}"
fi
convert "${CURRENT_IMAGE}" -sigmoidal-contrast "${AUTO_STRETCH_AMOUNT}x${AUTO_STRETCH_MID_POINT}" "${CURRENT_IMAGE}"
if [ $? -ne 0 ] ; then
Expand Down

0 comments on commit 9e875c4

Please sign in to comment.