How can I specify custom pixel formats when importing? #1169
-
Hi, I've got some 16 bit files with a custom pixel format that I want ImageMagick to read like this: Bit 0-4: Red So I essentially want to convert this 5-5-3-3 distribution to a conventional RGBA format (or alternatively, export each channel to its own grayscale image). ZIP file containing input and a possible desired output Is there a way to tell ImageMagick it should read the bits like that? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
There is no support for that in ImageMagick. I would advise you to scale the values to the correct range before doing an import ( |
Beta Was this translation helpful? Give feedback.
-
I was beginning to think so too, but then some wizard on StackOverflow provided a solution. |
Beta Was this translation helpful? Give feedback.
I was beginning to think so too, but then some wizard on StackOverflow provided a solution.
https://stackoverflow.com/questions/71631519/how-to-specify-a-custom-channel-distribution-in-imagemagick