Writer PDF-exports lose orientation of linked Photos

I have a Libreoffice Writer document that contains lots of clickable links to photos on my hard drive (links created via the path statement in an ‘insert link>document’ dialogue).

Apparently, the orientation of pictures is managed in exif metadata. If you take a landscape photo, then the origin (pixel 0,0) is designated ‘top-left’ by default. If you turn your camera around and take a photo of a tall thin object, modern cameras will set the exif metadata so that 0,0 is now designated as ‘bottom left’ (meaning that the photo gets displayed in Portrait orientation). Also, if you took the picture on an older camera (without awareness of its oprentation), then transferred your photo to a computer, then used the computer’s operating system to rotate it from (the default) Landscape to (your desired) Portrait orientation, then this is achieved by the computer changing the exif field for pixel 0,0 from ‘top left’ to ‘bottom left’. So far, so good.

When I open my Portrait photos by clicking the links from my Libreoffice Writer document, they open in Portrait (as they should). However, when I export the Writer document to PDF, the Portrait photos get opened in Landscape (unwantedly ‘unrotated’ through 90 degrees).

It seems like the ‘export to PDF’ process is stripping the exif metadata about orientation (whether the 0,0 pixel is (top left vs. bottom left)).

Is there some setting I am missing in the ‘Export to PDF’ dialog or is this a bug?

thanks

p.s. Note that these are not photos embedded in the document, they are hyperlinks to files on my PC, which open [REDACTED in Windows REDACTED] in new tabs in my PDF reader (Sumatra) when cntl-clicked. The actual file open fine in Windows and Writer, just not in the PDF export.

thanks

Version: 6.4.3.2 (x64)
Build ID: 747b5d0ebf89f41c860ec2a39efd7cb15b54f2d8
CPU threads: 8; OS: Windows 10.0 Build 18363; UI render: GL; VCL: win;
Locale: en-GB (en_GB); UI-Language: en-GB
Calc: threaded

Windows 10 home (latest) 64bit

Jack2359,

If the photos “open in Windows when cntl-clicked” the issue is with the program wich open that photos, not LibreOffice. Or LibreOffice is your default photo-viewer? Can you edit your question and clarify that. Thanks.

I have edited it - I had remembed them being opened in Windows Photos app, but actually when they are launched from the links in the pdf, they are opened in a new tab in the pdf viewer (Sumatra).
I have now grabbed some other pdf readers and I don’t get the same problem with those, so yes, I guess the problem is with Sumatra and not the Libreoffice ‘export-to-pdf’ process. Case closed. thanks

The issue is with the program wich open that photos, not LibreOffice.

@Jack2359, you can mark the answer as correct in the circle to the left.