tiny 88x31 lexicon for atproto
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

more logging YAY

+6
+6
blobs/validation.go
··· 2 2 3 3 import ( 4 4 "image" 5 + "log" 5 6 "os" 6 7 ) 7 8 8 9 func validateButton(path string) bool { 9 10 file, err := os.Open(path) 10 11 if err != nil { 12 + log.Println("won't open") 13 + log.Println(err) 11 14 return false 12 15 } 13 16 defer file.Close() 14 17 image, _, err := image.Decode(file) 15 18 if err != nil { 19 + log.Println("won't decode") 20 + log.Println(err) 16 21 return false 17 22 } 18 23 bounds := image.Bounds() 24 + log.Println(bounds) 19 25 return bounds.Dx() == 88 && bounds.Dy() == 31 20 26 21 27 }