aboutsummaryrefslogtreecommitdiff
path: root/go/images
diff options
context:
space:
mode:
authoryourchanges <yourchanges@gmail.com>2015-01-10 02:51:26 +0800
committeryourchanges <yourchanges@gmail.com>2015-01-10 02:51:26 +0800
commit9601880e323bbdf9540f2c79fb21d66374245b50 (patch)
tree14fd3b36a89955ec6e0be6d51186031e978b519d /go/images
parentf7bcd8e958ef185baeca0c455a397d49fcb62256 (diff)
parent2c1a846279c172bcae457e70efa142c29a18892e (diff)
downloadseaweedfs-9601880e323bbdf9540f2c79fb21d66374245b50.tar.xz
seaweedfs-9601880e323bbdf9540f2c79fb21d66374245b50.zip
Merge pull request #2 from chrislusf/master
merge
Diffstat (limited to 'go/images')
-rw-r--r--go/images/orientation.go3
-rw-r--r--go/images/resizing.go3
2 files changed, 4 insertions, 2 deletions
diff --git a/go/images/orientation.go b/go/images/orientation.go
index 41ed3f0af..4bff89311 100644
--- a/go/images/orientation.go
+++ b/go/images/orientation.go
@@ -2,11 +2,12 @@ package images
import (
"bytes"
- "github.com/rwcarlsen/goexif/exif"
"image"
"image/draw"
"image/jpeg"
"log"
+
+ "github.com/rwcarlsen/goexif/exif"
)
//many code is copied from http://camlistore.org/pkg/images/images.go
diff --git a/go/images/resizing.go b/go/images/resizing.go
index 08a1e15d2..e9de5f7d7 100644
--- a/go/images/resizing.go
+++ b/go/images/resizing.go
@@ -2,11 +2,12 @@ package images
import (
"bytes"
- "github.com/disintegration/imaging"
"image"
"image/gif"
"image/jpeg"
"image/png"
+
+ "github.com/disintegration/imaging"
)
func Resized(ext string, data []byte, width, height int) (resized []byte, w int, h int) {