Skip to content
This repository has been archived by the owner on Sep 23, 2020. It is now read-only.

Commit

Permalink
Use autoOrient() when resize image
Browse files Browse the repository at this point in the history
  • Loading branch information
jpkorhonen committed Dec 17, 2012
1 parent 0464d9e commit f6fb11d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions whiteboard.coffee
Expand Up @@ -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) ->
Expand Down

0 comments on commit f6fb11d

Please sign in to comment.