Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is width/height ratio respected for cropping? #124

Open
thatguyjono94 opened this issue Oct 11, 2023 · 1 comment
Open

Is width/height ratio respected for cropping? #124

thatguyjono94 opened this issue Oct 11, 2023 · 1 comment

Comments

@thatguyjono94
Copy link

thatguyjono94 commented Oct 11, 2023

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?

@marutichintan
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants