Description: In Draw, when I export an image of my document as an image, the exported image is created with a white 1-pixel border line at the bottom and another one on the right. These lines don't replace the pixels that were already there. Instead, the image is shifted one pixel up and left (so the pixels on the first column and the first row of the original image are lost), and then these two border lines are added. I've tested this issue with different original images and different exported formats. Steps to Reproduce: 1. I create a document in Draw. 2. I click on ‘Insert’ > ‘Image’. 3. Once inserted, I select it and I make sure that ‘Line style’ is set to ‘None’. 4. I click on ‘Export’. 5. I enable ‘Selection’ and I choose ‘PNG’. 6. I click on 'Save’. 7. In ‘PNG options’, I don’t change anything and click on ‘OK’. Actual Results: There's a white border line at the bottom and another one on the right side of the exported image. Expected Results: As the original image didn't have these lines and I didn't add them in Draw, these lines shouldn't be there. Reproducible: Always User Profile Reset: No Additional Info: Version: 25.8.3.2 (X86_64) Build ID: 8ca8d55c161d602844f5428fa4b58097424e324e CPU threads: 16; OS: Windows 11 X86_64 (build 26200); UI render: Skia/Raster; VCL: win Locale: es-ES (es_ES); UI: en-US Calc: CL threaded
Created attachment 203974 [details] Draw document
Created attachment 203975 [details] Original image
Created attachment 203976 [details] Exported image
Hello David, Thank you for reporting the bug. I can confirm that the bug is present in Version: 26.2.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: 620(Build:0) CPU threads: 32; OS: Windows 11 X86_64 (build 26100); UI render: Skia/Vulkan; VCL: win Locale: en-US (en_US); UI: en-US Calc: CL threaded Version: 25.8.2.2 (X86_64) Build ID: d401f2107ccab8f924a8e2df40f573aab7605b6f CPU threads: 32; OS: Windows 11 X86_64 (build 26100); UI render: Skia/Vulkan; VCL: win Locale: en-US (en_US); UI: en-US Calc: CL threaded
Bibisected with linux-64-7.3 to a9f6d98859321e1b9029acc0c6e9347f4c1cf3b7 tdf#126319 Corrected bitmap creation from metafile