summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReed Garmsen <rgarmsen2295@gmail.com>2015-06-22 10:20:20 -0700
committerReed Garmsen <rgarmsen2295@gmail.com>2015-06-22 10:20:20 -0700
commitc397adacbe4549567e9fd4520cee4f62da6a9539 (patch)
treefcd3c8b77e385e95b716a29512a5e5fdad1a54e4
parente3a662a842f5012c58215f1ede771f491bb2dc48 (diff)
downloadchat-c397adacbe4549567e9fd4520cee4f62da6a9539.tar.gz
chat-c397adacbe4549567e9fd4520cee4f62da6a9539.tar.bz2
chat-c397adacbe4549567e9fd4520cee4f62da6a9539.zip
Fixed bmp image previewing/uploading by adding new go image library
-rw-r--r--Godeps/Godeps.json4
-rw-r--r--api/file.go1
2 files changed, 5 insertions, 0 deletions
diff --git a/Godeps/Godeps.json b/Godeps/Godeps.json
index 87207c5e1..610b325de 100644
--- a/Godeps/Godeps.json
+++ b/Godeps/Godeps.json
@@ -151,6 +151,10 @@
"ImportPath": "gopkg.in/redis.v2",
"Comment": "v2.3.2",
"Rev": "e6179049628164864e6e84e973cfb56335748dea"
+ },
+ {
+ "ImportPath": "golang.org/x/image/bmp",
+ "Rev": "eb11b45157c1b71f30b3cec66306f1cd779a689e"
}
]
}
diff --git a/api/file.go b/api/file.go
index 10167c6ff..0e08567d6 100644
--- a/api/file.go
+++ b/api/file.go
@@ -15,6 +15,7 @@ import (
"github.com/nfnt/resize"
"image"
_ "image/gif"
+ _ "golang.org/x/image/bmp"
"image/jpeg"
"io"
"net/http"