Revision 6f54aff...

Go back to digest for 6th April 2014

Bug Fixes in Office

Stuart Dickson committed changes in [calligra/steam-233896_233900] /:

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%).

TODO:
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/exr_converter.cc
  •   krita/plugins/formats/exr/exr_converter.h
  •   krita/plugins/formats/exr/exr_export.cc
  •   krita/plugins/formats/exr/exr_import.cc
  •   krita/plugins/formats/exr/tests/kis_exr_test.cpp
  •   krita/plugins/formats/exr/tests/kis_exr_test.h
8 files changed in total