Re: [Gimp-user] Opening 16 bit SGI file

2021-04-27 Thread Simon Budig
Michael Izquierdo via gimp-user-list (gimp-user-list@gnome.org) wrote:
> When I open a 16 bit SGI file, it is always converted to 8 bit sRGB. I
> convert it to 16 bit Linear Light and i can see the 16 bit RGB values, but
> it doesn't match the hex dat that I see in the SGI file. It's close, but
> not exactly the same.

It seems that the sgi plugin does not implement 16 bit loading at all,
so in the best case it drops the low byte for a start...

The SGI plugin creates an image using the babl format "R'G'B'A u8", so
it provides 8 bit data to the gimp that assumes the sRGB gamma curve.

When converting this to linear light (i.e. "no gamma" or gamma = 1) this
gamma curve gets compensated for, which shifts the values around, so it
is not really surprising that the values change.

I suspect to get proper support for your situation the first target
would be the file-sgi plugin. It needs to be extended to pass 16 bit (or
even higher?) values to the Gimp core in the first place. Probably not
that hard, but then - I have no clue at all about the sgi file format...

Bye,
Simon

-- 
  si...@budig.de  http://simon.budig.de/
___
gimp-user-list mailing list
List address:gimp-user-list@gnome.org
List membership: https://mail.gnome.org/mailman/listinfo/gimp-user-list
List archives:   https://mail.gnome.org/archives/gimp-user-list


[Gimp-user] Opening 16 bit SGI file

2021-04-27 Thread Michael Izquierdo via gimp-user-list
When I open a 16 bit SGI file, it is always converted to 8 bit sRGB. I
convert it to 16 bit Linear Light and i can see the 16 bit RGB values, but
it doesn't match the hex dat that I see in the SGI file. It's close, but
not exactly the same.

SGI file value for pixel x=0, y=0 (Big Endian)
6F E8 6A 37 71 2D

Gimp values for pixel x=0, y=0
C6 9C C8 95 E1 2E

Either I have the wrong pixel value or Gimp is processing the pixels. Any
ideas?

Mike
___
gimp-user-list mailing list
List address:gimp-user-list@gnome.org
List membership: https://mail.gnome.org/mailman/listinfo/gimp-user-list
List archives:   https://mail.gnome.org/archives/gimp-user-list