Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update saveImage.sh #1024

Merged
merged 1 commit into from
Feb 14, 2022
Merged

Update saveImage.sh #1024

merged 1 commit into from
Feb 14, 2022

Conversation

EricClaeys
Copy link
Collaborator

Fixes #1020

Copy link
Collaborator

@AndreasLMeg AndreasLMeg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For me it works

17:38:27 ======================================================================
17:38:27 TEST: s ./test_saveImage.sh:
17:38:27 ----------------------------------------------------------------------
17:38:27 TEST: i Testcase: saveImage.sh NIGHT /home/pi/allsky/tmp/image_test.jpg (RESIZE+CROP+AUTO_STRECH+RESIZE_UPLOADS)
17:38:27 TEST: i SETUP
17:38:27 TEST: i /home/pi/allsky/config/config.sh: IMG_DIR=/home/pi/allsky/IT_tmp
17:38:27 TEST: i /home/pi/allsky/config/config.sh: CAMERA=RPiHQ
17:38:27 TEST: i /home/pi/allsky/config/settings_RPiHQ.json: filename=IT_final_image.jpg
17:38:27 TEST: i /home/pi/allsky/config/config.sh: IMG_RESIZE=true
17:38:27 TEST: i /home/pi/allsky/config/config.sh: IMG_WIDTH=2028
17:38:27 TEST: i /home/pi/allsky/config/config.sh: IMG_HEIGHT=1520
17:38:27 TEST: i /home/pi/allsky/config/config.sh: CROP_IMAGE=true
17:38:27 TEST: i /home/pi/allsky/config/config.sh: CROP_WIDTH=640
17:38:27 TEST: i /home/pi/allsky/config/config.sh: CROP_HEIGHT=480
17:38:27 TEST: i /home/pi/allsky/config/config.sh: CROP_OFFSET_X=0
17:38:27 TEST: i /home/pi/allsky/config/config.sh: CROP_OFFSET_Y=0
17:38:27 TEST: i /home/pi/allsky/config/config.sh: AUTO_STRETCH=true
17:38:27 TEST: i /home/pi/allsky/config/config.sh: AUTO_STRETCH_AMOUNT=10
17:38:27 TEST: i /home/pi/allsky/config/config.sh: AUTO_STRETCH_MID_POINT=10%
17:38:27 TEST: i /home/pi/allsky/config/config.sh: IMG_CREATE_THUMBNAILS=true
17:38:27 TEST: i /home/pi/allsky/config/config.sh: IMG_UPLOAD=true
17:38:27 TEST: i /home/pi/allsky/config/config.sh: RESIZE_UPLOADS=true
17:38:27 TEST: i /home/pi/allsky/config/config.sh: RESIZE_UPLOADS_SIZE=962x720
17:38:27 TEST: i EXECUTION
17:38:27 MOCK: > /home/pi/allsky/scripts/saveImage.sh: NIGHT /home/pi/allsky/IT_tmp/IT_image_test.jpg
17:38:31 MOCK: > /home/pi/allsky/scripts/upload.sh: /home/pi/allsky/IT_tmp/resize-IT_image_test.jpg IT_final_image.jpg SaveImage
17:38:31 TEST: i EVALUATION
17:38:31 TEST: i /home/pi/allsky/IT_images/20220214 exists: OK
17:38:31 TEST: i /home/pi/allsky/IT_images/20220214/thumbnails exists: OK
17:38:31 TEST: i /home/pi/allsky/IT_tmp/resize-IT_image_test.jpg_mock resized for upload exists: OK
17:38:31 TEST: i /home/pi/allsky/IT_tmp/resize-IT_image_test.jpg_mock resized for upload (identify): OK
17:38:31 TEST: i /home/pi/allsky/IT_images/20220214/IT_image_test.jpg (identify): OK
17:38:31 TEST: i /home/pi/allsky/IT_images/20220214/thumbnails/IT_image_test.jpg (identify): OK
17:38:31 TEST: i /home/pi/allsky/IT_tmp/IT_image_test.jpg removed: OK
17:38:31 TEST: i /home/pi/allsky/IT_tmp/resize-IT_image_test.jpg removed: OK
17:38:31 TEST: i /home/pi/allsky/IT_tmp/IT_final_image.jpg exists: OK
17:38:31 TEST: i /home/pi/allsky/IT_tmp/IT_final_image.jpg (identify): OK
17:38:31 TEST: i TEARDOWN
17:38:31 TEST: i ERR_CNT=0
17:38:31 ======================================================================

@EricClaeys EricClaeys merged commit 881c6d9 into master Feb 14, 2022
@EricClaeys EricClaeys deleted the IMG_UPLOAD branch February 15, 2022 20:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Please adjust the variable names "IMG_UPLOAD"/"UPLOAD_IMG"
2 participants