Revision 625faf4...

Go back to digest for 6th April 2014

Bug Fixes in Office

Dmitry Kazakov committed changes in [calligra] /:

Fixed loading of the EXR files with zero alpha and non-zero colors

EXR works with premultiplied colors, so it suports having zero alpha and
non-zero colors. Krita doesn't support premultiplied colors, so we just
set alpha to HALF_EPSILON on loading and reset it back to zero on saving.

This introduces subtle round-trip bugs, but they happen for alpha < 0.01
values only (which is 1%).

Now we also need to reset default projection color of the image to black
to load the EXR properly

File Changes

Modified 8 files
  •   krita/sdk/tests/testutil.h
  •   krita/plugins/formats/exr/CMakeLists.txt
  •   krita/plugins/formats/exr/
  •   krita/plugins/formats/exr/exr_converter.h
  •   krita/plugins/formats/exr/
  •   krita/plugins/formats/exr/
  •   krita/plugins/formats/exr/tests/kis_exr_test.cpp
  •   krita/plugins/formats/exr/tests/kis_exr_test.h
8 files changed in total