Support for various texture compressions
Hello, during the last months, I worked a bit with various texture compression formats and ended up writing a simple C-extension as a wrapper around existing C++ libraries.
https://github.com/K0lb3/tex2img
I would like to add the decompression functionality to Pillow, but I'm not sure how to go about it and I also don't know how to handle the licenses in a Pillow conform way.
formats:
- atc
- astc
- etc
- pvrtc
used libraries: Apache - BinomialLLC/basis_universal Apache - powervr-graphics/Native_SDK
We wouldn't include the source code for the other libraries in Pillow, but we might use them as dependencies, like we do with freetype.
Do you have images that have an appropriate license to be included in Pillow, and distributed as part of our test suite?
Apache - BinomialLLC/basis_universal
IIUC, the Apache 2.0 license is the stricter than any license currently included in precompiled Pillow wheels. In particular, it is incompatible with GPLv2. Every library currently included in Pillow wheels is GPLv2 compatible (that does not mean it imposes GPLv2 requirements). I believe FreeType has the strictest license currently, being dual-licensed under GPLv2-or-later and the FreeType license (BSD-style + advertising clause, which is incompatible with GPLv2).
That does not mean that a contribution using an Apache licensed library would be rejected. Pillow already supports imagequant which is GPLv3 licensed, but that library is not enabled by default.
Apache - powervr-graphics/Native_SDK
The link shows the MIT license, not Apache. Typo?
There are no issues with using MIT licensed libraries, Pillow already uses several of them.