Permalink
Browse files

Use autoOrient() when resize image

  • Loading branch information...
jpkorhonen committed Dec 17, 2012
1 parent 0464d9e commit f6fb11d47feaa1597cfd1aacbf8d09aeaff3f769
Showing with 1 addition and 0 deletions.
  1. +1 −0 whiteboard.coffee
View
@@ -167,6 +167,7 @@ app.post "/api/create_multipart", (req, res) ->
gm(req.files.image.path)
.resize(minWidth, minHeight)
+ .autoOrient()
.write req.files.image.path, ->
fs.readFile req.files.image.path, (err, imageData) ->

0 comments on commit f6fb11d

Please sign in to comment.