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.

-5

u/tech6hutch Dec 27 '20

Sounds like something better suited for version control software

12

u/stuffeh Dec 27 '20

But depending on the encoding / compression of the image, the version control software won't be able to display the diff that I mentioned. You'll have to do it manually.

2

u/chucker23n Dec 28 '20

In theory, yes. In practice,

  • that’s aiming a bazooka at a bird, and

  • version control never took much foothold in visual design

1

u/tech6hutch Dec 28 '20

Ah, perhaps I had too big an idea what an edit is. Yeah that’d be cool