jwagner / smartcrop.js

Content aware image cropping

Home Page:http://29a.ch/2014/04/03/smartcrop-content-aware-image-cropping

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is width/height ratio respected for cropping?

thatguyjono94 opened this issue · comments

I always want the topCrop width and height to be a perfect square?

smartcrop.crop(image, {width: 100, height: 100}).then(function(result){ console.log(result); });

I understand that the output width/height may not always be the preferred crop size, but will it be a perfect square as suggested by the input?

smartcrop.crop(image, {aspect: 1 }).then(function(result){ console.log(result); });