kimageformats/autotests
Mirco Miranda e96b43aef5 psd: Fix alpha blending (KF5)
PSD files are saved with as alpha premultiplied. The problem is that alpha refers to white instead of black so it requires transformation formulas. Then, to conver PS premultiplied to QImage premultiplied you have to use the following formula:

* V = Alpha + Vps - Max (C, M, Y, K, R, G, B, Gray, L\* components)
* V = Vps + (Alpha - Max + 1) / 2 (a\*, b\* components)

Where Max is the maximum value depending on the image depth and Vps is the valued read from the file.

This is a port of MR !143 to KF5.
2023-03-29 17:58:09 +00:00
..
ani Add plugin for animated Windows cursors (ANI) 2021-01-03 08:49:10 +00:00
pic Make PSD image reader endianess-agnostic. 2015-02-20 23:03:10 +00:00
read psd: Fix alpha blending (KF5) 2023-03-29 17:58:09 +00:00
write Fix writing TGA alpha depth flag 2023-02-02 01:11:32 +01:00
anitest.cpp Add plugin for animated Windows cursors (ANI) 2021-01-03 08:49:10 +00:00
CMakeLists.txt CMakeLists: enable EXR test 2022-10-02 06:01:23 +00:00
fuzzyeq.cpp Add write tests for heif/avif/jxl 2022-02-18 00:05:01 +01:00
long-runs.pic Rewrite the PIC image format handler 2014-05-04 13:42:30 +01:00
pictest.cpp Run clang-format on all cpp/h files 2021-03-08 20:15:33 +02:00
readtest.cpp Auto-rotate input images in readtest 2022-10-12 15:33:08 +02:00
writetest.cpp Add write tests for heif/avif/jxl 2022-02-18 00:05:01 +01:00