python-pillow / Pillow

Python Imaging Library (Fork)
https://python-pillow.org
Other
12.28k stars 2.23k forks source link

Tegra X1 Texture (XTX) support #3410

Open niemasd opened 6 years ago

niemasd commented 6 years ago

This is not a bug report, but more of a placeholder for a potential enhancement. It would be great if the XTX format could be supported by Pillow. I may work on this soon, but I just wanted the information to be available in case anybody else was interested as well.

Information about the XTX format: https://github.com/aboood40091/XTX-Extractor/wiki

How to write a new Pillow decoder: https://pillow.readthedocs.io/en/5.1.x/handbook/writing-your-own-file-decoder.html

radarhere commented 5 years ago

The project that you've linked to hasn't received an update in a while. Do you have any sample images that could be included under Pillow's license?

niemasd commented 5 years ago

EDIT: Removed file

In the attached zip file, I include a .jpg file as well as a .xtx file I created. Because the original image is not copyright and I converted to xtx myself, I imagine this would be allowed under Pillow's license

hugovk commented 5 years ago

For the .jpg, https://www.deviantart.com/vladictivo/art/Final-Fantasy-VII-NES-Front-Cover-467473039 says it is "©2014-2019 vladictivo".

Is the .xtx a conversion of that?

Instead, would you be able to convert one of the hopper.*files from Tests/images/ to hopper.xtx?

niemasd commented 5 years ago

Woops, didn't catch that! I've removed the file. Attached is a conversion of hopper.bmp to the xtx format.

hopper.zip