Bug 166965 - Android Viewer Regression: wrong colors displayed for embedded images
Summary: Android Viewer Regression: wrong colors displayed for embedded images
Status: RESOLVED DUPLICATE of bug 166005
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Android Viewer (show other bugs)
Version:
(earliest affected)
25.2.4.3 release
Hardware: ARM Android
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-06-12 13:13 UTC by Clément Vuchener
Modified: 2025-06-14 07:22 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
test text document (25.12 KB, application/vnd.oasis.opendocument.text)
2025-06-12 13:13 UTC, Clément Vuchener
Details
Correct display on LibreOffice Viewer 24.8.6.2 (230.19 KB, image/png)
2025-06-12 13:14 UTC, Clément Vuchener
Details
Incorrect display on LibreOffice Viewer 25.2.4.3 (231.63 KB, image/png)
2025-06-12 13:15 UTC, Clément Vuchener
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Clément Vuchener 2025-06-12 13:13:00 UTC
Description:
Images embedded in odt files viewed in LibreOffice Viewer on Android are displayed with wrong colors (swapped green and blue?). 

Steps to Reproduce:
1. Create a text document with LibreOffice Desktop
2. Add a color image
3. Save and copy on a Android device
4. Open the document with LibreOffice Viewer

Actual Results:
Document is displayed with wrong colors for images.

Expected Results:
Correct colors should be displayed.


Reproducible: Always


User Profile Reset: No

Additional Info:
This bug is present in 25.2.4.3 (from f-droid or play store) but not in 24.8.6.2 (from f-droid).

Tested with LineageOS 22 (Android 15) on both a Fairphone 4 and a Samsung Galaxy Tab S5e.
Comment 1 Clément Vuchener 2025-06-12 13:13:58 UTC
Created attachment 201226 [details]
test text document
Comment 2 Clément Vuchener 2025-06-12 13:14:33 UTC
Created attachment 201227 [details]
Correct display on LibreOffice Viewer 24.8.6.2
Comment 3 Clément Vuchener 2025-06-12 13:15:13 UTC
Created attachment 201228 [details]
Incorrect display on LibreOffice Viewer 25.2.4.3
Comment 4 Saburo 2025-06-12 14:46:59 UTC
I confirmed with LibreOffice Viewer 25.2.4.3
Build ID: 33e196637044

Not reproduce
Collabora Office
Version: 25.04.1.1 
online git-hash: d5882ae9bb 
core git-hash: 4f65d3e2446a
Comment 5 Michael Weghorn 2025-06-12 14:57:39 UTC
That sounds like the issue described in tdf#166005. I can reproduce with 25.2.4.3, but not a current master build.

I'll check whether cherry-picking 69162f01d3449e92e9a8b76c8a09378e1aef8a56 helps.

Version: 26.2.0.0.alpha0+
Build ID: c674ba2e7aaf
Comment 6 Xisco Faulí 2025-06-12 15:05:02 UTC
(In reply to Michael Weghorn from comment #5)
> That sounds like the issue described in tdf#166005. I can reproduce with
> 25.2.4.3, but not a current master build.
> 
> I'll check whether cherry-picking 69162f01d3449e92e9a8b76c8a09378e1aef8a56
> helps.
> 
> Version: 26.2.0.0.alpha0+
> Build ID: c674ba2e7aaf

Sounds reasonable, Cherry-picked in https://gerrit.libreoffice.org/c/core/+/186424
Comment 7 Michael Weghorn 2025-06-12 15:18:25 UTC
(In reply to Xisco Faulí from comment #6)
> Sounds reasonable, Cherry-picked in
> https://gerrit.libreoffice.org/c/core/+/186424

Thanks. Colors are indeed correct again with that patch applied.

-> Closing this bug report as a duplicate of tdf#166005, will be fixed in the next Android Viewer release.

*** This bug has been marked as a duplicate of bug 166005 ***
Comment 8 Michael Weghorn 2025-06-14 07:22:34 UTC
(In reply to Michael Weghorn from comment #7)
> -> Closing this bug report as a duplicate of tdf#166005, will be fixed in
> the next Android Viewer release.

New release was just published on Google Play and merge request for F-Droid was also merged (see https://gitlab.com/fdroid/fdroiddata/-/merge_requests/23687 -  but it might take a few days until the new version eventually becomes available in the F-Droid store).

@Clément: Thanks a lot for reporting the bug.