Pillow icon indicating copy to clipboard operation
Pillow copied to clipboard

Support for various texture compressions

Open K0lb3 opened this issue 5 years ago • 11 comments

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

K0lb3 avatar Feb 11 '20 20:02 K0lb3

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?

radarhere avatar Mar 07 '23 07:03 radarhere

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.

nulano avatar Mar 07 '23 14:03 nulano