Replies: 1 comment 1 reply
-
I think this is clear - you need to correctly set the PhotometricInterpretation. I'm not expert on compression, maybe others can help with some of the details. The original file was RGB, but I suspect PIL's jpeg is one of the YBR types. In any case, no evidence that it is a pydicom issue at this point, so converting to discussion... |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm trying to compress an uncompressed dicom: example.zip
The code I'm using to do it:
But when I try to convert the dicom to JPG with dcm2pnm, it says
can't change to unencapsulated representation for pixel data
.dcms.zip
Beta Was this translation helpful? Give feedback.
All reactions