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:
0xyo committed 2026-10-17 11:53:13 +01:00
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);
}
}