Description: Images lost in RTF when saving ODT to DOC and DOC to RTF Steps to Reproduce: 1. open attachment 164279 [details] 2. Save as DOC 3. File reload 4. Save as RTF 5. File reload Actual Results: Slow and no images Expected Results: Should be so Reproducible: Always User Profile Reset: No Additional Info: Version: 7.1.0.0.alpha0+ (x64) Build ID: <buildversion> 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 also in 4.4.7.2 and in 4.2.0.4 and in 3.5.0.3
Sorry, wrong info.. shapes are present in 4.2.0.4.. it's only opening..
Confirmed with Version: 7.0.1.2 Build ID: 7cbcfc562f6eb6708b5ff7d7397325de9e764452 CPU threads: 4; OS: Linux 5.4; UI render: default; VCL: gtk3 Locale: en-US (ro_RO.UTF-8); UI: en-US Calc: threaded
size of DOC: 433kb size of RTF (7.3): 176mb
bibisect-linux-43all 3.5- only figure 1 seen. 150MB. [3.6 sees both] bibisect-linux-43all last36onmaster - both figures seen. 150MB. bibisect-linux-43all last40onmaster - 150MB. (crash trying to open rtf) [3.6 opens it fine.] bibisect-linux-43all last41onmaster - only figure 2 seen (plus extra frame underneath). 228MB. [3.6 only sees figure2 also.] So apart from this being horrendous to start off with, we have an export problem starting in 4.1 somewhere. bibisect-linux-41max was running into a lot of skip builds that couldn't load any file, so I gave up bibisecting, since this bug isn't worth the effort.
This got a bit better after: https://git.libreoffice.org/core/commit/24ee09ab41924fd339835cbc7a54a5ba27f5c67e tdf#104288: rtf export: drop \nonshppict on export Now the extreme file size is below 1 Mb, manageable. The main odt->doc->rtf image loss issue is still happening. Some observations: - saving directly to rtf creates an extra "Shape1" drawing object, but the two images are still present. The horizontal and vertical positioning of the second caption frame is pretty incorrect too - this can be a separate bug. - saving to doc does not lose the images and does not create an extra Shape1 - looks pretty good - saving the doc to rtf loses the first image and leaves the "Shape1" drawing on its place.