Skip to content

Combine rotate and resize operation results unexpected image resolution. #1922

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

Closed
jasli2 opened this issue Oct 18, 2019 · 2 comments
Closed
Labels

Comments

@jasli2
Copy link

jasli2 commented Oct 18, 2019

Image resolution is not correct after rotate and resize.

For example, the original image resolution is 3000(w) x 2000(h).
what I am going to do is resize the image to 750(w) x 500(h) then rotate image by 90 degree. So the image resolution should be 500(w) x 750(h). Code is:

image.resize({ height: 500 }).rotate(90).then(...);

However, the resolution of image results at 333(w) x 500(h).
Seems like the rotate operation is done before resize no matter the operation order is.

I have confirmed if I separate this two operation into two script to process, I will got the correct image resolution. So I believe a bug is in there.

@jasli2 jasli2 added the triage label Oct 18, 2019
@lovell
Copy link
Owner

lovell commented Oct 31, 2019

Hello, you may be interested in the discussion at #241 about improvements to operation ordering in the API.

@lovell lovell added question and removed triage labels Oct 31, 2019
@lovell
Copy link
Owner

lovell commented Nov 24, 2019

I hope this information helped. Please feel free to re-open with more details if further help is required.

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

No branches or pull requests

2 participants