Skip to content

Commit

Permalink
Update saveImage.sh: bug fix with IMAGE_TO_USE
Browse files Browse the repository at this point in the history
  • Loading branch information
EricClaeys authored Aug 26, 2023
1 parent 3d058c0 commit 4eba611
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/saveImage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ 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}"
fi
convert "${CURRENT_IMAGE}" -sigmoidal-contrast "${AUTO_STRETCH_AMOUNT}x${AUTO_STRETCH_MID_POINT}" "${IMAGE_TO_USE}"
convert "${CURRENT_IMAGE}" -sigmoidal-contrast "${AUTO_STRETCH_AMOUNT}x${AUTO_STRETCH_MID_POINT}" "${CURRENT_IMAGE}"
if [ $? -ne 0 ] ; then
echo -e "${RED}*** ${ME}: ERROR: AUTO_STRETCH failed; not saving${NC}"
exit 4
Expand Down

0 comments on commit 4eba611

Please sign in to comment.