node.js - Nodejs image crop by coordinates -
is there way can give x, y coordinates while cropoing image.
currently using imagemagick
im.crop({ srcpath: upload_path+media_file_name, dstpath: upload_path+"thumb_"+media_file_name, width: 350, height: 210, quality: 1, gravity: 'center' }, function(err, stdout, stderr){ }; this code working haven't got luck x, y coordinates. following input want use image cropping
height:360 width:360 x:180 y:300
i don't speak node, can use raw interface? it'll like
im.convert(['inputimage.jpg','-crop','350x200+x+y','output.jpg'], function(...) put in own numbers x , y.
Comments
Post a Comment