eugeneration / HappyIslandDesigner

https://eugeneration.github.io/HappyIslandDesigner/
MIT License
831 stars 144 forks source link

Consider using PNG zTXt with JSON for position storage #48

Open jgentil opened 4 years ago

jgentil commented 4 years ago

The PNG RFC offers compressed, easy to read, and unlimited storage in zTXt chunks that would be a significant improvement over using stenography. It would be nice to have in JSON format for export to other tools!

https://www.w3.org/TR/2003/REC-PNG-20031110/#11zTXt

This library seems to provide the functionality: https://github.com/finnp/png-itxt

eugeneration commented 4 years ago

This definitely looks interesting, though can't say I can currently spare the time to improve a 'working' feature. Steganography + LZString has proven to be flaky and I've had to make a few changes to make it work. If I see continued reports of bad map encoding then I will make the switch.