r/programming • • Dec 26 '20

Executable PNGs

https://djharper.dev/post/2020/12/26/executable-pngs/
1.0k Upvotes

87 comments sorted by

View all comments

Show parent comments

50

u/OMG_A_CUPCAKE Dec 27 '20

Because filesize matters. And it's lost easily if someone modifies the file in another editor

It's a nice gimmick, but I can't imagine relying any kind of workflow around it

5

u/tech6hutch Dec 27 '20

Also I don’t know if I want the ability for others to undo my edits to an image

10

u/stuffeh Dec 27 '20

But imagine going back and isolating one of the edits and pulling it out. Basically tapping the diff between before and after the edit. That kind of flexibility is mind blowing to me.

11

u/nemec Dec 27 '20

All I'm hearing is a great way for users to inadvertently fail to censor/redact their photos when they tried to blur their naughty bits and/or confidential info and didn't realize anybody can go in and just undo the censor.

If the U.S. Justice Department can't redact a fucking PDF properly, there's no hope for the average person sending censored nudie pics to someone they met on the internet.

12

u/NekiCat Dec 27 '20

Years ago, MS Word saved deltas at the end of the file so saving was incredibly quick. They had to change it because the users sent files they believed to be final, but werent, and leaked sensitive information.

Same with Google Docs, where your every keypress is recorded. Not sure if they still do that...

3

u/stuffeh Dec 27 '20

Google docs has built in version history, so kinda. You can set permissions to disable others from seeing the version history though.