aboutsummaryrefslogtreecommitdiff
path: root/go/images/preprocess.go
diff options
context:
space:
mode:
Diffstat (limited to 'go/images/preprocess.go')
-rw-r--r--go/images/preprocess.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/go/images/preprocess.go b/go/images/preprocess.go
index b5907b1b8..6b183df9f 100644
--- a/go/images/preprocess.go
+++ b/go/images/preprocess.go
@@ -12,7 +12,7 @@ import (
* Call this function on any file uploaded to weedfs
*
*/
-func MaybePreprocessImage(filename string, data []byte, width, height int) (resized []byte) {
+func MaybePreprocessImage(filename string, data []byte, width, height int) (resized []byte, w int, h int) {
ext := filepath.Ext(filename)
switch ext {
case ".png", ".gif":
@@ -21,5 +21,5 @@ func MaybePreprocessImage(filename string, data []byte, width, height int) (resi
data = FixJpgOrientation(data)
return Resized(ext, data, width, height)
}
- return data
+ return data, 0, 0
}