Skip to content

How to apply resize AFTER rotate #2021

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
adityapatadia opened this issue Jan 3, 2020 · 2 comments
Closed

How to apply resize AFTER rotate #2021

adityapatadia opened this issue Jan 3, 2020 · 2 comments
Labels

Comments

@adityapatadia
Copy link

What are you trying to achieve?
I am trying to resize image after rotate. For example, if an image is 100px width and 50px height, if I rotate it by 90 degree, height becomes 100px and width becomes 50px.

Now, if I pass input.rotate(90).resize({width: 50, fit: 'inside'}), I expect the output image to be of 50 pixel width and 100 pixel height but I get 25 pixel width and 50 pixel height image.

Question is how to change order or rotate and resize operations?

@adityapatadia adityapatadia changed the title How to apply resize AFTER rotatw How to apply resize AFTER rotate Jan 3, 2020
@lovell
Copy link
Owner

lovell commented Jan 7, 2020

Hi, you'll need to separate this into two pipelines, see also #1922 for a similar question.

@adityapatadia
Copy link
Author

Okay, that is already done. I thought it would be good if there was a way to do it in single pipeline.

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