Yes, sounds good, I agree that the simple decoder should be the first step. checking a file if it contains a PGF image; each PGF image starts with 'PGF' = 0x50 0x47 0x46 This is already done by this piece of code: https://github.com/DavidMStraub/Pillow-PGF/blob/main/pillow_pgf/init.py#L53-L57 reading and decoding an image file to a memory buffer Right. One problem I faced when playing around was that I didn't really understand how to get the decoder working when fully implemented in C. The documentation...
Hi, I don't know C or anything about image codecs, but I am a Python developer, so it looks like a good match ;-) Indeed I would be happy to work on this. I played around a bit with the scaffolding for a Pillow plugin and put what I have cobbled together into a Github repo: https://github.com/DavidMStraub/Pillow-PGF Basically there is a Python method decode in decoder.py that calls the decode function from the C extension in pgf_decoder.c. Do you think you could provide something along these lines?...
Pillow plugin for Python?