Created attachment 123920 [details] Sample exported PNG image file (1200 W x 600 H) from Writer Writer fails to create the background image transparency of the "page no-fill" portion in an exported file. Attached is an exported sample file. Procedures and settings: "File -> Export" Example: * Format -> Page -> Area -> Fill -> None (Width: 12.00 " Height 6.00 ") * Properties of Inserted Image: White Background with Grey Border (blank_white_box_1024x512.png) * File -> Export -> lo_writer_image_export.png -> Save -> Resolution: 100 DPI -> OK Result: Area outside of Grey Border (Page Area) SHOULD BE TRANSPARENT. This is no longer the case beginning approximately with LibreOffice Writer Version 5.0.0.0. Worked properly in earlier releases.
Please could you attach test file? Thanks
A sample test output file has been attached when I initially posted this bug. Please see: "Created attachment 123920 [details] Sample exported PNG image file (1200 W x 600 H) from Writer" I'll attach the original .odt file from which the exported file was created if that's what you are asking for.
Created attachment 123954 [details] Sampt ODT File from which exported image originated
Note: In the attached ODT file in the current dev version of LibreOffice Writer (5.1.2.1) and in previous "working" versions prior to LibreOffice Writer 5.0.0.0, I have the following setting: * Format -> Page -> Transparency -> No Transparency This setting, in versions of LiberOffice Writer prior to 5.0.0.0, worked fine and resulted in a transparency outside of the grey borders of the imported image. It no longer works and there is no transparency in the exported image. I have tried using the "Transparency -> Transparency 100%" setting and this still does not work.
As Armin indicates in bug 96922 c#15, I don't believe bitmap export to PNG with alpha channel transparency has ever been implemented for Writer. Bitmap export from Writer to JPEG and PNG was implemented as a feature for the 4.1 release, prior to that export was only to HTML or PDF. Addition of transparency to frames in Writer was implemented at 4.2 and refined at 4.3. Frames of individual images, draw objects, paragraphs, and even the page canvas correctly retain their transparency as set for the frame--distinct from Area from 4.2 onward. But the Writer bitmap export has never supported a PNG alpha channel for the page, unlike the Draw export to PNG with alpha channel provides. I suppose it might be a reasonable enhancement. I see a use case for preparing alpha channel PNG using Writers better text and paragraph manipulation as more efficient than text boxes in Draw. Beleive we can resolve this invalid, or morph it to an enhancement. @Armin?
Agreed, enhancement would be good. Also please take a 2nd look at using 'Selection' in the dialog. It should limit export to the selected parts. In Writer and formal functionality that will probably create new writer pages (temporaily), add the selected stuff and export. It might re-layout (only one paragraph selected...?) which might need to be discussed. It will not use transparency due to Writer always painting the Page as BG. This is also discussable, even when Writer stuff is selected (text, ...). In that context it would also be handy to discuss if 'convert to Graphic...' like in Draw/Impress in the context menu of slections would be nice - it comes in handy sometimes and of course is even more useful when keeping the transparency. Just some thoughts...
*** Bug 117939 has been marked as a duplicate of this bug. ***
*** Bug 115508 has been marked as a duplicate of this bug. ***