▲ | ai_critic 7 days ago | ||||||||||||||||||||||
Reality check: Your extra data is a big JSON blob. Okay, fine. File formats dating back to Targa (https://en.wikipedia.org/wiki/Truevision_TGA) support arbitrary text blobs if you're weird enough. PNG itself has both EXIF data and a more general text chunk mechanism (both compressed and uncompressed, https://www.libpng.org/pub/png/spec/1.2/PNG-Chunks.html#C.An... , section 4.2.3, you probably want iTXt chunks). exiftool will already let you do all of this, by the way. There's no reason to summon non-standard file format into the world (especially when you're just making a weird version of PNG that won't survive resizing or quantization properly). | |||||||||||||||||||||||
▲ | ai_critic 7 days ago | parent | next [-] | ||||||||||||||||||||||
Here, two incantations: > exiftool -config exiftool.config -overwrite_original -z '-_custom1<=meta.json' cat.png and > exiftool -config exiftool.config -G1 -Tag_custom1 cat.png You can (with AI help no less) figure out what `exiftool.config` should look like. `meta.json` is just your JSON from github. Now go draw the rest of the owl. :) | |||||||||||||||||||||||
▲ | kuberwastaken 7 days ago | parent | prev [-] | ||||||||||||||||||||||
Hi! Thanks for checking it out, means a lot :) Yes, it is a big JSON blob atm, haha and t's definitely still a POC, but the idea is to avoid having a separate JSON file that adds to the complexity. While EXIF data works pretty well for most basic stuff, it's not enough for everything one might need for AI specific stuff, especially for things like attention maps and saliency regions. I'm currently working on redundancy and error correction to deal with the resizing problem. Having a separate file format, even if it's a headache and adds another one to the list (well, another cute-sounding one at least), gives more customization options and makes it easier to associate the properties directly. There's definitely a ton of work left to do, but I see a lot of potential in something like this (also, nice username) | |||||||||||||||||||||||
|