Update camera/camera.go
This commit is contained in:
@@ -35,7 +35,7 @@ func CaptureImage() bool {
|
|||||||
|
|
||||||
if resp.Body != nil {
|
if resp.Body != nil {
|
||||||
timestamp := time.Now()
|
timestamp := time.Now()
|
||||||
filename := timestamp.Format("/axis-2006-01-02_15-04-05.jpg")
|
filename := timestamp.Format("/axis-2006-01-02_15-04-05.png")
|
||||||
|
|
||||||
img, _, err := image.Decode(resp.Body)
|
img, _, err := image.Decode(resp.Body)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user