Bug 168153 - .png images not printed in Writer
Summary: .png images not printed in Writer
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
25.8.0.4 release
Hardware: ARM macOS (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-08-28 07:42 UTC by Sciuriware
Modified: 2025-12-23 21:51 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Picture made as a screenshot in MacOS (1.39 MB, image/png)
2025-08-29 18:41 UTC, Sciuriware
Details
Empty document with a few letters text and the picture inserted (1.47 MB, application/vnd.oasis.opendocument.text)
2025-08-29 18:43 UTC, Sciuriware
Details
Screenshot of the p[rint dialog, made by Shift+Cmd+5 (287.36 KB, image/png)
2025-08-29 18:44 UTC, Sciuriware
Details
About window as requested (2.94 MB, image/png)
2025-09-04 06:59 UTC, Sciuriware
Details
Failing document (256.02 KB, application/vnd.oasis.opendocument.text)
2025-12-21 12:18 UTC, Sciuriware
Details
screenshot of the problem (20.88 KB, image/png)
2025-12-23 15:42 UTC, Sciuriware
Details
screenshot of the about window (264.18 KB, image/png)
2025-12-23 15:43 UTC, Sciuriware
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sciuriware 2025-08-28 07:42:34 UTC
Description:
Images of the format *.png, embedded via Insert>Image or via Paste from clipboard
are NOT printed although visual in preview.
Images of the format *.jpg are correctly processed, as well as the *.png images
converted to *.jpg.

Steps to Reproduce:
1.create document, empty or containing some text.
2.paste image from clipboard or insert image from file (*.png)
3.prepare to print: shows already missing image on preview part

Actual Results:
Empty spots on the printed paper

Expected Results:
Would produce the page(s) as previewed while editing in Writer


Reproducible: Always


User Profile Reset: No

Additional Info:
I am not sure when this bug appeared; over the years I have embedded scores of images in my documents; as I standardised on *.png because of image quality
it must all have been *.png
I seem to remember that I did not have these problems in release 24
but I might be wrong as I did not embed images for a year or so.
Comment 1 Alex Thurgood 2025-08-29 16:49:48 UTC
No repro for me with

Version: 25.8.1.1 (AARCH64)
Build ID: 54047653041915e595ad4e45cccea684809c77b5
CPU threads: 8; OS: macOS 15.6.1; UI render: Skia/Metal; VCL: osx
Locale: fr-FR (fr_FR.UTF-8); UI: fr-FR
Calc: threaded


1) Open Writer
2) Type some text
3) Insert PNG image via Insert menu
4) Print out page from Writer
5) Page prints out with image on it.


Does the PNG have any particular qualities, e.g. transparency, alpha, etc ?
Comment 2 Sciuriware 2025-08-29 18:41:45 UTC
Created attachment 202598 [details]
Picture  made as a screenshot in MacOS

Just a screenshot made by Shift+Cmd+4
Comment 3 Sciuriware 2025-08-29 18:43:01 UTC
Created attachment 202599 [details]
Empty document with a few letters text and the picture inserted
Comment 4 Sciuriware 2025-08-29 18:44:55 UTC
Created attachment 202600 [details]
Screenshot of the p[rint dialog, made by Shift+Cmd+5

No picture visible in the preview
Comment 5 Sciuriware 2025-08-29 18:46:44 UTC
Very strange: the preview button (or Shift+Cmd+O ) shows the page WITH picture.
;JOOP!
Comment 6 Sciuriware 2025-08-30 08:59:56 UTC
Updated to 25.8.1 :: exactly the same behaviour.
;JOOP!
Comment 7 Telesto 2025-09-04 06:20:33 UTC
Could you post the LibreOffice -> About information
Comment 8 Sciuriware 2025-09-04 06:59:20 UTC
Created attachment 202686 [details]
About window as requested

As asked for.
;JOOP!
Comment 9 Alex Thurgood 2025-09-04 19:16:31 UTC
It might be that the release build hasn't been built with a signed libpng.dyld, or that it isn't signed with the correct authorisations.

There's an xattr command line instruction you might try to see if any improvement. I'm not in front of my Mac, so don't remember what it is right now.

Another thought I've had is that I've probably installed a libpng version of some kind via Homebrew and maybe this is being called on my system.
Comment 10 Sciuriware 2025-12-21 12:14:54 UTC
The problem is still there: a page with christmas card labels was not printed
on TAHOE 26.2 running writer 25.8.4.2

Had to print from an older INTEL machine running 24.8.4

Document in question follows.
;JOOP!
Comment 11 Sciuriware 2025-12-21 12:18:24 UTC
Created attachment 204747 [details]
Failing document

Failing document attached.
;JOOP!
Comment 12 QA Administrators 2025-12-22 03:11:19 UTC Comment hidden (obsolete)
Comment 13 Xisco Faulí 2025-12-22 14:42:15 UTC
@Dan, is it something you can reproduce on your end ?
Comment 14 Sciuriware 2025-12-22 15:56:27 UTC
About reproductability (!?):

I got a Studio M1, a Studio M2 and a macbook Pro M2, all on 26.2 Tahoo.
The problem seems to have started while all machines ran
15.x Sequoia, after installing Writer 25.2

As mentioned, my old Intel iMac running 24.8.2 has no problems with the
document while the printer is the same (CANON MB 2750).
;JOOP!
Comment 15 dcbw@libreoffice.org 2025-12-22 16:30:55 UTC
I can reproduce the issue in 25.8.2.2 if Skia is disabled.

I cannot reproduce the issue in latest git master and in the following build if Skia is *enabled*.

Version: 25.8.2.2 (AARCH64)
Build ID: d401f2107ccab8f924a8e2df40f573aab7605b6f
CPU threads: 8; OS: macOS 26.2; UI render: default; VCL: osx
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 16 Sciuriware 2025-12-22 17:48:08 UTC
That would work for me, but,

I seem to remember that using SKIA all the time would spoil something else.
Is that the case?

Otherwise I would like to consider problem solved and case closed.
Thanks any way.
;JOOP!
Comment 17 dcbw@libreoffice.org 2025-12-22 17:56:57 UTC
(In reply to Sciuriware from comment #16)
> That would work for me, but,
> 
> I seem to remember that using SKIA all the time would spoil something else.
> Is that the case?
> 
> Otherwise I would like to consider problem solved and case closed.
> Thanks any way.
> ;JOOP!

Skia is mandatory on macOS with LibreOffice 26 and later as of https://gerrit.libreoffice.org/c/core/+/186250 (merged June 13, 2025). So yeah, it's "fixed", but I'd still like to figure out what the issue was...
Comment 18 Sciuriware 2025-12-22 18:08:39 UTC
Thanks for the info.
;JOOP!
Comment 19 dcbw@libreoffice.org 2025-12-22 18:31:43 UTC
This commit fixes the issue when Skia is disabled:

"Revert: draw alpha bitmaps directly to print graphics on macOS"
https://gerrit.libreoffice.org/c/core/+/190496

We can consider this fixed in 26+ but we're still supporting 25.8 until mid-2026, so this commit should get backported.
Comment 20 Xisco Faulí 2025-12-22 19:37:46 UTC
(In reply to dcbw@libreoffice.org from comment #19)
> This commit fixes the issue when Skia is disabled:
> 
> "Revert: draw alpha bitmaps directly to print graphics on macOS"
> https://gerrit.libreoffice.org/c/core/+/190496
> 
> We can consider this fixed in 26+ but we're still supporting 25.8 until
> mid-2026, so this commit should get backported.

Hi Dan,
Thanks for finding the commit fixing the issue. It has been backported to libreoffice-25-8 branch in https://gerrit.libreoffice.org/c/core/+/196114
Comment 21 Sciuriware 2025-12-23 15:42:55 UTC
Created attachment 204768 [details]
screenshot of the problem
Comment 22 Sciuriware 2025-12-23 15:43:43 UTC
Created attachment 204769 [details]
screenshot of the about window
Comment 23 Sciuriware 2025-12-23 15:46:37 UTC
(In reply to Xisco Faulí from comment #20)
> (In reply to dcbw@libreoffice.org from comment #19)
> > This commit fixes the issue when Skia is disabled:
> > 
> > "Revert: draw alpha bitmaps directly to print graphics on macOS"
> > https://gerrit.libreoffice.org/c/core/+/190496
> > 
> > We can consider this fixed in 26+ but we're still supporting 25.8 until
> > mid-2026, so this commit should get backported.
> 
> Hi Dan,
> Thanks for finding the commit fixing the issue. It has been backported to
> libreoffice-25-8 branch in https://gerrit.libreoffice.org/c/core/+/196114

It's not over: suddenly on writer 25.8.4 with SKIA enabled all hovered
buttons with icons become black.
See attachments (sorry for the disorder of comments).
;JOOP
Comment 24 Alex Thurgood 2025-12-23 16:23:59 UTC
(In reply to Sciuriware from comment #23)

> 
> It's not over: suddenly on writer 25.8.4 with SKIA enabled all hovered
> buttons with icons become black.
> See attachments (sorry for the disorder of comments).
> ;JOOP



I can confirm that behaviour with 25.8.4, but is is the same bug (or a different, but similar one) ?

Mouse over on main toolbar, for example, shows icons against a black background.
Comment 25 Sciuriware 2025-12-23 17:19:43 UTC
Exactly, mouse over shows .... black upon black: some icons almost
disappear.
Whatever it is, eventually unworkable.
;JOOP!
Comment 26 Sciuriware 2025-12-23 17:39:25 UTC
I should have made my comment like this:

If this effect is the result of enabling SKIA in 25.8.4 then we probably
did not make too much progress.
;JOOP!
Comment 27 Sciuriware 2025-12-23 20:08:18 UTC
I checked: it is NOT SKIA.
Do I need to file a new bug report?
;JOOP!
Comment 28 Xisco Faulí 2025-12-23 21:51:32 UTC
(In reply to Sciuriware from comment #23)
> (In reply to Xisco Faulí from comment #20)
> > (In reply to dcbw@libreoffice.org from comment #19)
> > > This commit fixes the issue when Skia is disabled:
> > > 
> > > "Revert: draw alpha bitmaps directly to print graphics on macOS"
> > > https://gerrit.libreoffice.org/c/core/+/190496
> > > 
> > > We can consider this fixed in 26+ but we're still supporting 25.8 until
> > > mid-2026, so this commit should get backported.
> > 
> > Hi Dan,
> > Thanks for finding the commit fixing the issue. It has been backported to
> > libreoffice-25-8 branch in https://gerrit.libreoffice.org/c/core/+/196114
> 
> It's not over: suddenly on writer 25.8.4 with SKIA enabled all hovered
> buttons with icons become black.
> See attachments (sorry for the disorder of comments).
> ;JOOP

Hi,
That not the same issue as the one originally described here. Please, create another ticket for it.
Meanwhile, https://gerrit.libreoffice.org/c/core/+/196114 has been merged and this issue can be consider FIXED. The fix will be available in LibreOffice 25.8.5