←back to thread

A new PNG spec

(www.programmax.net)
617 points bluedel | 3 comments | | HN request time: 0.547s | source
Show context
joshmarinacci ◴[] No.44378719[source]
A fun trick I do with my web based drawing tools is to save a JSON representation of your document as a comment field inside of a PNG. This way the doc you save is immediately usable as an image but can also be loaded back into the editor. Also means your downloads folder isn’t littered with unintelligible JSON files.
replies(12): >>44379250 #>>44379645 #>>44379652 #>>44379867 #>>44379992 #>>44380435 #>>44380543 #>>44380616 #>>44380678 #>>44380701 #>>44380930 #>>44384671 #
1. dtech ◴[] No.44379645[source]
A fun trick, but I wouldn't want to explain to users why their things are saved as a .png, not why their things is lost after they opened and saved the PNG in Paint.
replies(2): >>44380457 #>>44385492 #
2. KetoManx64 ◴[] No.44380457[source]
If a user is using paint to edit their photos, they're 100% not going to be interested in having the source document to play around with.
3. account42 ◴[] No.44385492[source]
It can also become a security issue when users inadvertendly share layers/history/whatever that isn't visible anymore in the final image but still in the editable part.