Bug 496681 - Initial Jpeg rotation different if proxy is activated or not
Summary: Initial Jpeg rotation different if proxy is activated or not
Status: RESOLVED FIXED
Alias: None
Product: kdenlive
Classification: Applications
Component: Project Bin & Import (show other bugs)
Version: 24.08.3
Platform: Flatpak Linux
: NOR normal
Target Milestone: ---
Assignee: Jean-Baptiste Mardelle
URL:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2024-11-25 18:58 UTC by steph
Modified: 2024-12-05 21:40 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 24.12.0
Sentry Crash Report:


Attachments
Image with different rotation when proxy is activated or not (2.99 MB, image/jpeg)
2024-11-25 18:58 UTC, steph
Details

Note You need to log in before you can comment on or make changes to this bug.
Description steph 2024-11-25 18:58:59 UTC
Created attachment 176116 [details]
Image with different rotation when proxy is activated or not

When I import a particular picture taken with an iphone ( IMG_6296.JPG in attachment), the image appears vertical in the project bin and in the project monitor. If I activate the proxy for this image, the image is still vertical in the project bin but now horizontal in the project monitor. Which means if I use proxies to edit my video, the image looks fine because I see it horizontal like I want it to be, but when I calculate the final video the proxies are not used and the image appears vertical in the final output. So the final renders is different than what I see on my timeline.

My guess is that kdenlive and the proxy calculator use the EXIF data differently to rotate the image.

STEPS TO REPRODUCE
1. start a new project
2. add IMG_6296.JPG to the project bin
3. add IMG_6296.JPG to the timeline
4. Click on the timeline to preview the timeline in the monitor
    Note that the image (IMG_6296.JPG) appears to be vertical.
5. Click the image in the project bin and activate proxy for this image
    Note that the image is now vertical in the project bin, but horizontal in the monitor.

OBSERVED RESULT
The image changes its orientation when proxy is activated or not

EXPECTED RESULT
The image should not change orientation because I activate proxy on it.

SOFTWARE/OS VERSIONS
Using KDenlive 24.08.3 flatpak on Linux Mint 21.3
Comment 1 emohr 2024-11-25 19:33:55 UTC
Thank you for reporting. I can confirm the issue following your steps. Same happen under Windows.
Comment 2 Jean-Baptiste Mardelle 2024-12-05 21:40:44 UTC
Git commit 451b7171db0ab9c2ce05d5054782890ba46d4f47 by Jean-Baptiste Mardelle.
Committed on 05/12/2024 at 21:40.
Pushed by mardelle into branch 'release/24.12'.

Fix proxied image messes exif orentation
FIXED-IN: 24.12.0

M  +7    -37   src/jobs/proxytask.cpp

https://invent.kde.org/multimedia/kdenlive/-/commit/451b7171db0ab9c2ce05d5054782890ba46d4f47