Created attachment 172827 [details] testdocument Open attached file. It belongs to test testEffectExtent in ooxmlexport.cxx in sw. The document should show an image with reflection effect. Instead there is a default custom shape. Save the file to docx and reopen again. The custom shape is not visible. Expected: LibreOffice shows an image, currently without reflection, because that is not yet implemented.
Repro Version: 7.1.0.0.beta1+ (x64) Build ID: f9fab4203c1aa0b9a3f27ce2713b6d5addc7df19 CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: default; VCL: win Locale: nl-NL (nl_NL); UI: nl-NL Calc: CL
And with Version: 7.2.0.0.alpha1+ (x64) / LibreOffice Community Build ID: 239b4bb27fd8db26e8416045b3015688a8b1b0ae CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win Locale: nl-NL (nl_NL); UI: en-US Calc: CL
broken bit differently Version: 6.4.0.0.beta1+ (x64) Build ID: 20be5cd0bdc57d812bf34a2debfe48caa51de881 CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: default; VCL: win; Locale: nl-NL (nl_NL); UI-Language: en-US Calc: CL again differently positioned and wrong image (but export functioning) Version: 6.3.7.0.0+ (x86) Build ID: 726535ec30f12697ceccd2f0640d9371a64dc5bd CPU threads: 4; OS: Windows 6.3; UI render: default; VCL: win; Locale: nl-NL (nl_NL); UI-Language: en-US Calc: CL everything as expected (opening & export) Version: 6.2.0.0.alpha0+ Build ID: b1d1edff4e81a8299e2a17c7e562d144329549ab CPU threads: 4; OS: Windows 6.3; UI render: GL; Locale: nl-NL (nl_NL); Calc: CL
Also in Version: 7.3.0.0.alpha0+ / LibreOffice Community Build ID: 5aa74aa1e6fac571f99146ebcb6adc9feb1459ad CPU threads: 4; OS: Linux 5.8; UI render: default; VCL: gtk3 Locale: ro-RO (ro_RO.UTF-8); UI: en-US TinderBox: Linux-rpm_deb-x86_64@86-TDF, Branch:master, Time: 2021-07-28_19:35:14 Calc: threaded
Created attachment 174320 [details] The example file in Word, 7.0 and 7.1 side by side This mirroring effect got broken sometime in 7.1, although the images positioning got better and the image content was not good before either.
The image loss on roundtrip started with the following commit in 7.1, bibisected to its 7.0 backport using repo bibisect-linux-64-7.0. https://cgit.freedesktop.org/libreoffice/core/commit/?id=9fe881410909c5273cef517433411bc4eceee294 author Gülşah Köse <gulsah.kose@collabora.com> 2020-08-23 22:32:53 +0300 committer Gülşah Köse <gulsah.kose@collabora.com> 2020-08-24 16:20:37 +0200 "tdf#134174 Fix the rotation of bitmap filled custom shapes." Previously the rotated shape was mispositioned, it had an overlay of the unrotated LO logo (which didn't get lost on RT). This itself is a regression, and before the following commit in 6.2, the rotated logo looked correct. https://cgit.freedesktop.org/libreoffice/core/commit/?id=8af919d30f0f17a17ee6f5190bb31652476a52df author Tamas Bunth <tamas.bunth@collabora.co.uk> 2019-05-13 01:02:07 +0200 committer Miklos Vajna <vmiklos@collabora.com> 2019-05-15 09:26:00 +0200 ooxml import: supprt cropping to shape
(In reply to Aron Budea from comment #6) > https://cgit.freedesktop.org/libreoffice/core/commit/ > ?id=8af919d30f0f17a17ee6f5190bb31652476a52df > > ooxml import: supprt cropping to shape Actually, that is a backported commit, this is the original in 6.3: https://cgit.freedesktop.org/libreoffice/core/commit/?id=f4ba484183a1e7b9824f10580d633466c266828f
Dear Regina Henschel, To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year. There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present. If you have time, please do the following: Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/ If the bug is present, please leave a comment that includes the information from Help - About LibreOffice. If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice. Please DO NOT Update the version field Reply via email (please reply directly on the bug tracker) Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not appropriate in this case) If you want to do more to help you can test to see if your issue is a REGRESSION. To do so: 1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/ 2. Test your bug 3. Leave a comment with your results. 4a. If the bug was present with 3.3 - set version to 'inherited from OOo'; 4b. If the bug was not present in 3.3 - add 'regression' to keyword Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-UntouchedBug
It is better in LO 24.2, but still needs improvement. The image is cropped to a round rectangle in Word. Such cropping does not yet exist in LibreOffice. Therefore it is imported as round rectangle with bitmap fill. But the fill does not rotate together with the shape, so the import uses a rotated image as fill. The so rotated image has a bad quality and changing the rotation of the shape will not change the rotation of the image. The export does not restore the original image. Ideas to improve the situation: (1) Keep the original image and restore it when save as docx. (2) Use the original, upright image as fill, set the shape in extrusion mode with zero depth and orthographic front. Then rotate the shape. The fill rotates together with the shape in extrusion mode. This works in principle but is currently only usable for images without transparency because of bug 159515. (3) Insert the image as image and do the crop with a contour polygon. Such contour polygon is available for Writer-images but not for Draw-images. So task would be to implement contour polygon for Draw-images.