From 249f9dfa9915ee9ed709efc8c4abd5774f37efed Mon Sep 17 00:00:00 2001 From: Georg Hagen Date: Tue, 25 Feb 2025 20:21:22 +0100 Subject: [PATCH] Fix image orientation --- openVulkanoCpp/Image/ExifBuilder.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openVulkanoCpp/Image/ExifBuilder.cpp b/openVulkanoCpp/Image/ExifBuilder.cpp index fab2aa3..42f6bcd 100644 --- a/openVulkanoCpp/Image/ExifBuilder.cpp +++ b/openVulkanoCpp/Image/ExifBuilder.cpp @@ -300,8 +300,8 @@ namespace OpenVulkano::Image { orientationRad = Math::Utils::NormalizeAngleRad(orientationRad); if (orientationRad > 0.78f && orientationRad < 2.35f) orientation = 8; - else if (orientationRad < 3.93f && orientationRad >= 2.35f) orientation = 3; - else if (orientationRad < 5.5f) orientation = 6; + else if (orientationRad >= 2.35f && orientationRad < 3.93f) orientation = 3; + else if (orientationRad >= 3.93f && orientationRad < 5.5f) orientation = 6; else orientation = 1; }