flrs / blend_modes

Python package that implements image blend modes
MIT License
140 stars 29 forks source link

Change image format for tests #16

Open flrs opened 5 years ago

flrs commented 5 years ago

The currently used "PNG" format is not lossless and therefore might influence the quality of the tests. For example, if a prepared test image is exported from GIMP for comparison with blend_modes' image blending method, the image might already be changed during the export process.

To avoid this problem, a lossless format should be used, for example TIFF. The format needs to be fully compatible with the library used for importing images into Python (currently opencv-python).

MadsDyrmann commented 5 years ago

I think you confuse the two formats. PNG is always lossless, whereas TIFF can be lossless, but often isn't. -- It depends on which compression method you select when exporting the TIFF image.

flrs commented 4 years ago

Alright, thank you for the explanation. Whatever we make of this issue, we should enforce a lossless format.