mirror of
https://github.com/Tichau/FileConverter.git
synced 2026-11-19 17:12:22 +01:00
Fixes: Rotate left/right image presets rotated images in the wrong direction (issue #784).
ImageMagick rotates clockwise for positive angles, but File Converter's rotation convention (video path: 90° -> ffmpeg transpose=2, counter-clockwise, and the preset editor tooltip "90° counter clockwise rotation") expects positive angles to rotate counter-clockwise. Negate the angle so image rotations match video rotations and the preset names.
This commit is contained in:
1 parent
6c157a411f
commit
800880a1d6
1 file changed
+3
-1
@@ -177,7 +177,9 @@ namespace FileConverter.ConversionJobs
|
||||
{
|
||||
Debug.Log($"Apply rotation: {rotateAngleInDegrees}°.");
|
||||
|
||||
image.Rotate(rotateAngleInDegrees);
|
||||
// ImageMagick rotates clockwise for positive angles, the app expects
|
||||
// counter-clockwise (video path uses ffmpeg transpose=2 for 90°).
|
||||
image.Rotate(-rotateAngleInDegrees);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user