png metadata
Posted: Wed Aug 08, 2018 3:26 pm
Would be nice if we can add text to a png file to describe the default or custom properties. The libpng PB uses supports it.
http://www.purebasic.com
http://forums.purebasic.com/english/
Code: Select all
Structure NativePBExifStructure
; standard EXIF fields
EndStructure
fn.s = "C:\my-diagram.png"
img = LoadImage(#PB_Any,fn,@exif.NativePBExifStructure)
exif\DateTimeOriginal = Date()
SaveImage(img,fn,#PB_ImagePlugin_PNG,flags,depth,@exif)
Code: Select all
ReadImageEXIFData(filename,@exif.NativePBExifStructure)
WriteImageEXIFData(filename,@exif.NativePBExifStructure)