Skip to content

RAW16 (monochrome) set but images saved as 8 bit RGB #3671

Answered by Alex-developer
simonleeADL asked this question in Q&A
Discussion options

You must be logged in to vote

@EricClaeys

I figured it out!

In this line here (in allsky_loadimage.py), cv2.imread(s.CURRENTIMAGEPATH) should be cv2.imread(s.CURRENTIMAGEPATH,cv2.IMREAD_UNCHANGED) (which is appropriately done in allsky_overlay.py).

This succeeds in outputting a 16 bit monochrome PNG when asked. The legacy overlay does not interfere with this, however (unless I've done something wrong) the modern overlay simply does not show up.

Thanks for the fix.

I have added a fix to the current release, its awaiting merge and also to the upcoming release

Cheers

Alex

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@simonleeADL
Comment options

Comment options

You must be logged in to vote
1 reply
@Alex-developer
Comment options

Answer selected by simonleeADL
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants