camera-ui icon indicating copy to clipboard operation
camera-ui copied to clipboard

A way to crop photos to square proportions

Open dvmorris opened this issue 8 years ago • 2 comments

Is there a way to automatically crop images to a square when using this library? My photos are coming back rectangular, and when I stick them in a square space in a template, they are being squeezed in one direction or the other. I'm new to Meteor, so perhaps there is a better way to handle this, but I thought this would be a good place to ask. Thanks for your help!

dvmorris avatar May 02 '16 21:05 dvmorris

No Worry. You need to use Resizer after your meteor camera as your callback Resizer.resize(data, {width: 400, height: 300, cropSquare: true}, function(err, file) { processImage(file,function(data) { //your code }); });

MennaMa avatar Feb 16 '17 15:02 MennaMa

When i do this, it is not resize the image properly on android device.

dineshsdm avatar Feb 21 '17 08:02 dineshsdm