Custom Chunk Reading?
amiantos opened this issue · 2 comments
amiantos commented
Sometimes there may be data embedded in custom chunks in an image. How would one use swift-png
to check for these custom chunks? For example, TavernAI uses PNG cards that have a base64 string encoded into a "chara" chunk. How would I get this using swift-png? Sorry, I know this is an issue and not a support forum, but I'm stumped!
amiantos commented
amiantos commented
Well... I'm embarrassed. Apparently as I copied the PNG into my Xcode project, macOS or something was editing the PNG and removing the other data. If I download the data from a server and load it in, the text headers appear and I can fetch them. Nevermind.