From 800880a1d655ef0774d45decd50647e9802e035c Mon Sep 17 00:00:00 2001 From: 0xyo <0xyo@users.noreply.github.com> Date: Sat, 17 Oct 2026 09:22:58 +0100 Subject: [PATCH] Fixes: Rotate left/right image presets rotated images in the wrong direction (issue #784). MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- .../FileConverter/ConversionJobs/ConversionJob_ImageMagick.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Application/FileConverter/ConversionJobs/ConversionJob_ImageMagick.cs b/Application/FileConverter/ConversionJobs/ConversionJob_ImageMagick.cs index 312431f..5a5286f 100644 --- a/Application/FileConverter/ConversionJobs/ConversionJob_ImageMagick.cs +++ b/Application/FileConverter/ConversionJobs/ConversionJob_ImageMagick.cs @@ -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); } }