jbaiter / jpegtran-cffi

Fast, (mostly) lossless JPEG transformations with Python
http://jpegtran-cffi.readthedocs.org
MIT License
145 stars 23 forks source link

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

Open Espresso521 opened 9 months ago

Espresso521 commented 9 months ago
  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 commented 1 month ago

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

Espresso521 commented 3 weeks ago

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.