Commit 8363c855 authored by Allan Sandfeld Jensen's avatar Allan Sandfeld Jensen
Browse files

Correctly interpret RGBA tiff images as premultiplied


The TIFFReadRGBAImageOriented method turns out to return colors with
alpha premultiplied by default. The only reason we pass our own tests
is because we also save the colors incorrectly unpremultiplied.

The patch fixes the format type of the returned images, and explictily
writes the how alpha should be interpreted in the saved files.

Change-Id: Ie1c3881acfe07eae25ca735adf243c1636f656a0
Reviewed-by: default avatarGunnar Sletta <gunnar@sletta.org>
Showing with 14 additions and 6 deletions
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment