Description: If object(s) is/are selected, exported as PNG when 'Save transparency' option is NOT checked under 'Drawing Objects' section in the 'PNG options' dialog box, the image is saved WITH transparency. However if 'Selection' option is not checked in the Export dialog box (full page is considered to be exported) then the 'Save transparency' option/checkbox in last 'PNG options' dialog box is honoured. Steps to Reproduce: 1. Add one or more objects in a page in Draw which could result in PNG transparent image 2. Select all the objects 3. Open the Export wizard from File menu 4. Enter file name with PNG extension or select PNG from 'Filter' dropdown in the Export dialog box 5. Check the option 'Selection' in the Export dialog box and click on 'Save' button 6. In the PNG options dialog box, UNCHECK the 'Save transparency' checkbox under section 'Drawing Objects' 7. Click on 'OK' button to finally export/save the image is PNG Actual Results: The PNG image is being saved with transparency Expected Results: The PNG image must not have transparency, it must have white pixels in place of the transparent pixels. Reproducible: Always User Profile Reset: No Additional Info: [Information automatically included from LibreOffice] Locale: en-US Module: DrawingDocument [Information guessed from browser] OS: Linux (All) OS is 64bit: yes Version: 6.3.6.2 Build ID: 6.3.6.2-4.fc31 CPU threads: 4; OS: Linux 5.7; UI render: default; VCL: kde5; Locale: en-IN (en_IN.UTF-8); UI-Language: en-US Calc: threaded
Confirm the checkbox toggle is not disabling transparency recent 7.1.0 master. Version: 7.1.0.0.alpha0+ (x64) Build ID: a3b4831208da615789bd1e2d5660dd130807f504 CPU threads: 4; OS: Windows 10.0 Build 19041; UI render: Skia/Vulkan; VCL: win Locale: en-US (en_US); UI: en-US Calc: threaded
Set bug to NEW according to comment 1.
Julien Nabet committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/eed83764088bfdfcc6513778f7dc83d649f550a3 tdf#136632: Use 'Save transparency' when exporting selected objects for PNG It will be available in 7.4.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Patch for 7.3 branch waiting for review here: https://gerrit.libreoffice.org/c/core/+/131061
Julien Nabet committed a patch related to this issue. It has been pushed to "libreoffice-7-3": https://git.libreoffice.org/core/commit/43356e4d9fe022f24265747cb4b0ae2fc3cd3236 tdf#136632: Use 'Save transparency' when exporting selected objects for PNG It will be available in 7.3.2. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Xisco Fauli committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/b461ada70158de5cd2e96a54147c8e46ee1ca4ac tdf#136632: sd_png_export_tests: Add unittest It will be available in 7.4.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Julien Nabet committed a patch related to this issue. It has been pushed to "libreoffice-7-2": https://git.libreoffice.org/core/commit/61c5101a95308fe20e684fa72457c867bd115216 tdf#136632: Use 'Save transparency' when exporting selected objects for PNG It will be available in 7.2.7. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.