A tool for archiving & converting scans of postcards, and information about them.
at main 16 lines 313 B view raw
1package resolution 2 3import ( 4 "math/big" 5 6 "github.com/jphastings/dotpostcard/pkg/xmpinject" 7) 8 9func decodeWebP(data []byte) (*big.Rat, *big.Rat, error) { 10 // TODO: Should I also check XMP data here? 11 exif, err := xmpinject.EXIFfromWebP(data) 12 if err != nil { 13 return nil, nil, err 14 } 15 return decodeExif(exif) 16}