Best way to crop and upload an image using express?

I upload an image on an S3 server with knox to express.

I would like the user to be able to crop the image for this profile image (e.g. on facebook).

I heard about Jcrop for the user interface and imagemagick for the server. For you, what is the best way to do this?

Sorry for my bad english.

+5
source share
2 answers

You can try using the beautiful GraphicsMagick library for node.js https://github.com/aheckmann/gm

.. http://aheckmann.github.com/gm/

var gm = require('gm')
  , resizeX = 200
  , resizeY = 400

gm('/path/to/image.jpg')
.resize(resizeX, resizeY)
.write(response, function (err) {
  if (err) ...
});
+9

, , ( Picsee), , . , ( ) . GD, Image- GraphicsMagick.

, , . JCrop. S3, .

+1

All Articles