https://bugs.documentfoundation.org/show_bug.cgi?id=146019

            Bug ID: 146019
           Summary: Always insert rotated image if it has EXIF rotation
           Product: LibreOffice
           Version: unspecified
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Keywords: difficultyBeginner, easyHack
          Severity: enhancement
          Priority: medium
         Component: LibreOffice
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected],
                    [email protected], [email protected]
            Blocks: 108437

When an image with EXIF rotation [1], eg. attachment 176569 is inserted, there
is/used to be a dialog that asks the user whether they want to insert the
rotated or unrotated image.
This dialog was removed in Writer with the below commit, but it's still there:
- in Calc, Impress and Draw, when inserting images,
- in each app when the image is dragged into it from outside, eg. the OS file
manager.

https://cgit.freedesktop.org/libreoffice/core/commit/?id=baadefe9cb8e6745493b0c383e1d66ff3905d153
author          Marco Cecchetti <[email protected]> 2019-10-20
18:28:07 +0200
committer       Marco Cecchetti <[email protected]> 2020-03-06
10:39:26 +0100

The goal would be to remove this dialog in the remaining places, and always
insert the image in the rotated state based on EXIF. The dialog itself was
added sometimes between 4.0 and 4.1, before that this rotation hadn't been
implemented. Considering the users will probably always choose the option to
rotate the image (the unrotated state is the camera's orientation, described in
[1]), the dialog is unnecessary.

Code pointers can be found in the above commit, and in the commits of bug
145819.

Attachment 176569 can be used to verify the behavior, the house should be
rotated 90 degrees clockwise if the EXIF data is taken into account.

Making this a beginner level easy hack, but feel free to adjust that.

[1] https://jdhao.github.io/2019/07/31/image_rotation_exif_info/


Referenced Bugs:

https://bugs.documentfoundation.org/show_bug.cgi?id=108437
[Bug 108437] [META] Image bugs and enhancements
-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to