1. Victor Stinner
  2. hachoir
  3. Issues
Issue #15 resolved

Incorrect multiplier for gamma value in PNG parser

hypertex
created an issue

In hachoir-parser png.py, lines 77 and 79 multiply/divide the gamma value by 10,000. According to the specs, the multiplier should be 100,000.

See http://www.libpng.org/pub/png/spec/1.2/png-1.2-pdg.html#C.gAMA ;

http://www.w3.org/TR/2003/REC-PNG-20031110/%2311gAMA

I'd fix it, but I'm new to this and don't want to mess it up.

Chris

Comments (2)

  1. Log in to comment