by donatj · 2y ago · 0 comments
A gif is lossless in that it does not lose data. When you define a frame within the formats limitations, you will always receive that exact frame in return.
The conversion might have lost data but that's not the gif losing it. That's just what happens trying to fit a larger domain in a smaller domain.
The individual frames within a gif are bitmaps that do not lose detail across saves, extractions, rotations, etc. Each individual pixel is displayed exactly as originally defined.
Compare this to JPEG or MP4 where your individual pixel becomes part of a larger cosine field. There is no guarantee this pixel will exist and even if it does, its exact value is almost certainly changed. This is what "lossy" is.
Only assuming your base images have that many bits of information.
Most cameras max out at 16 bits per channel when shooting RAW, and even those rarely have mostly noise in the lower bits.
I'm sure you can find an example of some supercooled telescope sensor that actually does capture 16 bits per channel, maybe even more.
In the real world your image source is usually either JPG (24 bits per pixel, already debayered and already lossy) or RAW (16 bits per pixel max, bayered).