kimageformats/autotests/read/xcf
Mirco Miranda 49060026b7 Read test: added perceptive fuzziness
Added a new parameter to the read tests called `perceptive-fuzz`.
The parameter, when active, modifies the fuzziness value based on the alpha value of the pixel. The more transparent the pixel, the more the fuzziness value increases.

We have found that some image manipulation functions give different results depending on the architecture (we think it is differences in rounding). These differences can become problematic with small alpha values ​​when there are several image conversions from normal alpha to premultiplied alpha (and vice versa).
In particular, the offending plugin is XCF.

The parameter should be set if and only if necessary. CMakeList has not been modified to allow it to be enabled on all format images (you can still try it from the command line). To use it, you need to set it in the JSON file of the image that has problems (after careful analysis).

More info about the issue on #18 

This MR also fixes a bug in `fazzeq()`: it only compared 1/4 of the image.

Below is the same XCF image rendered on AMD64 and PowerPC:

- AMD64:

![image](/uploads/7815ee49fac9b06d08bf1e0e3879f16e/image.png)

- PowerPC:

![image](/uploads/d7432902d638f6caf9589ebb4ad99827/image.png)

The image is visually the same because the differences are with very low alpha and therefore are negligible. The patch proposed with this MR is useful in these cases.
2025-01-24 13:07:32 +00:00
..
birthday16_alphabug.png PSD: support native CMYK introduced by Qt 6.8 2024-06-07 10:16:58 +00:00
birthday16_gray.png xcf: format v12 support 2023-08-28 17:27:08 +00:00
birthday16_gray.xcf xcf: format v12 support 2023-08-28 17:27:08 +00:00
birthday16_grayA.png xcf: format v12 support 2023-08-28 17:27:08 +00:00
birthday16_grayA.xcf xcf: format v12 support 2023-08-28 17:27:08 +00:00
birthday16.png XCF: testcase update for fixed Qt 2024-03-14 21:49:09 +00:00
birthday16.xcf xcf: format v12 support 2023-08-28 17:27:08 +00:00
birthday16.xcf.json Read test: added perceptive fuzziness 2025-01-24 13:07:32 +00:00
birthday16fp_gray.png xcf: format v12 support 2023-08-28 17:27:08 +00:00
birthday16fp_gray.xcf xcf: format v12 support 2023-08-28 17:27:08 +00:00
birthday16fp_grayA.png xcf: format v12 support 2023-08-28 17:27:08 +00:00
birthday16fp_grayA.xcf xcf: format v12 support 2023-08-28 17:27:08 +00:00
birthday16fp.png xcf: format v12 support 2023-08-28 17:27:08 +00:00
birthday16fp.xcf xcf: format v12 support 2023-08-28 17:27:08 +00:00
birthday16fp.xcf.json Read test: added perceptive fuzziness 2025-01-24 13:07:32 +00:00
birthday32_alphabug.png PSD: support native CMYK introduced by Qt 6.8 2024-06-07 10:16:58 +00:00
birthday32_gray.png xcf: format v12 support 2023-08-28 17:27:08 +00:00
birthday32_gray.xcf xcf: format v12 support 2023-08-28 17:27:08 +00:00
birthday32_grayA.png xcf: format v12 support 2023-08-28 17:27:08 +00:00
birthday32_grayA.xcf xcf: format v12 support 2023-08-28 17:27:08 +00:00
birthday32.png XCF: testcase update for fixed Qt 2024-03-14 21:49:09 +00:00
birthday32.xcf xcf: format v12 support 2023-08-28 17:27:08 +00:00
birthday32.xcf.json Read test: added perceptive fuzziness 2025-01-24 13:07:32 +00:00
birthday32fp_gray.png xcf: format v12 support 2023-08-28 17:27:08 +00:00
birthday32fp_gray.xcf xcf: format v12 support 2023-08-28 17:27:08 +00:00
birthday32fp_grayA.png xcf: format v12 support 2023-08-28 17:27:08 +00:00
birthday32fp_grayA.xcf xcf: format v12 support 2023-08-28 17:27:08 +00:00
birthday32fp.png xcf: format v12 support 2023-08-28 17:27:08 +00:00
birthday32fp.xcf xcf: format v12 support 2023-08-28 17:27:08 +00:00
birthday32fp.xcf.json Read test: added perceptive fuzziness 2025-01-24 13:07:32 +00:00
birthday_grayA.png xcf: format v12 support 2023-08-28 17:27:08 +00:00
birthday_grayA.xcf xcf: format v12 support 2023-08-28 17:27:08 +00:00
birthday.png xcf: format v12 support 2023-08-28 17:27:08 +00:00
birthday.xcf xcf: format v12 support 2023-08-28 17:27:08 +00:00
bug411327.png Add files for testing bug411327 2019-09-20 23:18:17 +02:00
bug411327.xcf Add files for testing bug411327 2019-09-20 23:18:17 +02:00
bug_476755_gray_layers.png XCF: fixed wrong composite on Grayscale images 2024-06-10 20:16:31 +00:00
bug_476755_gray_layers.xcf XCF: fixed wrong composite on Grayscale images 2024-06-10 20:16:31 +00:00
bug_476755_rgb_layers.png XCF: fixed wrong composite on Grayscale images 2024-06-10 20:16:31 +00:00
bug_476755_rgb_layers.xcf XCF: fixed wrong composite on Grayscale images 2024-06-10 20:16:31 +00:00
bug_476755_rgb_layers.xcf.json More metadata read tests 2025-01-16 23:03:37 +00:00
fruktpilot16_icc.png xcf: format v12 support 2023-08-28 17:27:08 +00:00
fruktpilot16_icc.xcf xcf: format v12 support 2023-08-28 17:27:08 +00:00
fruktpilot16fplin_icc.png xcf: format v12 support 2023-08-28 17:27:08 +00:00
fruktpilot16fplin_icc.xcf xcf: format v12 support 2023-08-28 17:27:08 +00:00
fruktpilot16fplin_icc.xcf.json Read test: added perceptive fuzziness 2025-01-24 13:07:32 +00:00
fruktpilot32_icc.png xcf: format v12 support 2023-08-28 17:27:08 +00:00
fruktpilot32_icc.xcf xcf: format v12 support 2023-08-28 17:27:08 +00:00
fruktpilot32fplin_icc.png xcf: format v12 support 2023-08-28 17:27:08 +00:00
fruktpilot32fplin_icc.xcf xcf: format v12 support 2023-08-28 17:27:08 +00:00
fruktpilot_icc.png xcf: format v12 support 2023-08-28 17:27:08 +00:00
fruktpilot_icc.xcf Fix XCF parasites metadata in QImage and support to ICC profile 2022-03-23 23:34:33 +00:00
fruktpilot.png xcf: format v12 support 2023-08-28 17:27:08 +00:00
fruktpilot.xcf Add support for modern Gimp images/XCF files 2020-04-13 14:52:33 +02:00
simple-bw-gimp-2.8.10.png Add simple autotests 2014-02-03 15:03:29 +00:00
simple-bw-gimp-2.8.10.xcf Add simple autotests 2014-02-03 15:03:29 +00:00
simple-bwa-gimp-2.8.10.png Add simple autotests 2014-02-03 15:03:29 +00:00
simple-bwa-gimp-2.8.10.xcf Add simple autotests 2014-02-03 15:03:29 +00:00
simple-rgb-gimp-2.8.10.png Add simple autotests 2014-02-03 15:03:29 +00:00
simple-rgb-gimp-2.8.10.xcf Add simple autotests 2014-02-03 15:03:29 +00:00
simple-rgba-gimp-2.8.10.png Use gimp to export simple-rgba-gimp-2.8.10.xcf to png again 2018-11-17 12:22:25 +01:00
simple-rgba-gimp-2.8.10.xcf Add simple autotests 2014-02-03 15:03:29 +00:00