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

Fixed the sign of the angle in image.rotate() method #256

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

itstechaj
Copy link

#252
The image.rotate() method used in Operations.py was given a positive angle for performing clockwise rotation and a negative angle for anticlockwise rotation, which was opposite to the behavior of the image.rotate() function which is when this function is given a positive angle of rotation then it rotates in the anticlockwise direction and for a negative angle of rotation it rotates in the clockwise direction. This commit corrects the sign of the angle of rotation provided inside the image.rotate() method to ensure the rotation is performed correctly according to the desired clockwise and anticlockwise directions.

Link for testing code and the result images before and after my change.
https://drive.google.com/drive/folders/1MWlUfkjTjIaS0WnxdH5Gz2PlatFKhXyC?usp=sharing

The image.rotate() method used in Operations.py was using a positive angle for performing clockwise rotation and a negative angle for anticlockwise rotation, which was opposite with the behavior of the image.rotate() function that is when this function is given positive angle of rotation then it rotates in anticlockwise direction and for negative angle of rotation it rotates in clockwise direction. This commit corrects the sign of the angle of rotation provided inside the image.rotate() method to ensure the rotation is performed correctly according to the desired clockwise and anticlockwise directions.
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

Successfully merging this pull request may close these issues.

1 participant