
On Mon, Feb 15, 2021 at 10:03 PM Anton Aylward <opensuse@antonaylward.com> wrote:
On 2021-02-12 2:06 p.m., Roger Oberholtzer wrote:
I am also curious how one would view 12-bit red, green or blue on a PC.
And I'm curious about
(a) how I would find/identify a 12-but JPG if one exists on my system can exiftool show that up
It's not an exif thing I think. Exif is just the headers and envelope for the image.
(b) how I could create a 120bit JPG. Darktable has a 'quality' setting in its 'export' module, but I don't think that's it.
Quality is just the compression. JPEG now supports lossless compression. That would be the best quality. As to 12-bit components, I guess it depends on your software. If it is using the libjpeg that is installed system-wide, then you can probably only access up to 8 bit components. It is a compile-time thing for the library. I am not sure if it is enough to replace the libjpeg file or if you need to recompile your program as well. I suspect that you must recompile your program as well. And be sure it supports 12-bit. That is, it has no bad logic that assumes a component it 8-bits when allocating image buffer storage. I think 12-bit support was just an experimental thing for JPEG. I don't think medical images are stored that way. That's where the main push for this has come from. I thought that medical images were usually some variant on TIFF. I don't really know. -- Roger Oberholtzer