Skip to content
This repository has been archived by the owner on Jan 5, 2021. It is now read-only.

Scaling does not take height into consideration. #13

Open
majidhassan opened this issue Aug 2, 2016 · 1 comment
Open

Scaling does not take height into consideration. #13

majidhassan opened this issue Aug 2, 2016 · 1 comment

Comments

@majidhassan
Copy link

I'm trying to scale an image without keeping the original ratio.

image.scale({
    width: 1000,
    height: 500
});

So, for instance, if an image has the dimensions 2000 x 800 before scaling, after calling the scale function as indicated above, the resulted image has the dimensions 1000 x 400 instead of 1000 x 500.

@flovilmart
Copy link
Owner

It seems to be graphicsMagic/imageMagic that does that.

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

No branches or pull requests

2 participants