Image EditingLesson 200Free preview
Rotate Image
This lesson is part of Web Developer Tools · All levels
Summary
Rotate the image at a certain angle, for example 90, 180, or free angle to balance the horizon. The rotation of the elbow-angle can be done without pixel interpolation, whereas any angle requires resampling and larger canvases. Also, look at the orientation metadata so that the results don't spin twice.
Key points
- A 90-degree rotation exchanges the position of width and height
- Any angle requires interpolation that can slightly soften the detail
- The resulting canvas needs to be expanded so that the angle of the image does not cut.
- The EXIF orientation metadata can make a different view from the original pixel
- Always keep a copy before you rotate permanently.
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.