Editing PNG with private chunks - adding and removing a chunk with public methods #67
pnelson-eog
started this conversation in
Ideas
Replies: 1 comment
-
I realize this is complicated by the fact that metadata.application can hold multiple chunks with the same type. Removing a large chunk would be inefficient without some additional identity. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Right now, the only way to add a chunk is using
For adding the ancillary chunk, the pixel argument should default since it is not used. I have to specify a dummy value that gets ignored.
There isn't a mutating function that allows me to remove or replace the data in a chunk.
Swift's copy on write for value types lets you think you are modifying the metadata.application if you try to remove something but you are only modifying a copy.
Beta Was this translation helpful? Give feedback.
All reactions