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

The rotate method causes the image to be misaligned. #45

Open
Espresso521 opened this issue Feb 28, 2024 · 2 comments
Open

The rotate method causes the image to be misaligned. #45

Espresso521 opened this issue Feb 28, 2024 · 2 comments

Comments

@Espresso521
Copy link

  from jpegtran import JPEGImage
  img = JPEGImage('./image.jpeg').rotate(90).save('./rotated_image.jpg')

rotated_image.jpg is misaligned.

image
rotated_image

Is the method(rotate(90)) I used wrong???

@mixmastamyk
Copy link

Looks correct to me. The road in the original is not completely horizontal either.

@Espresso521
Copy link
Author

I just to rotate(90) method to rotate the original picture, but the result has misaligned.
The road in the original is not completely horizontal, that why I want to use the rotate(90) method to rotate it.
But the rotate(90) method make the misaligned to the result picture.

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