Bug 162428 - Break Link only embeds some images
Summary: Break Link only embeds some images
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.1.0.3 release
Hardware: x86-64 (AMD64) All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, regression
Depends on:
Blocks: Regressions-imageHandling
  Show dependency treegraph
 
Reported: 2024-08-11 12:52 UTC by DM
Modified: 2024-09-24 13:25 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description DM 2024-08-11 12:52:39 UTC
Description:
In the documents I've tested (the links are all be stored as relative),
Edit - External Links - Ctrl-A (selects all links) - Break Link
only breaks a few top links of the ones requested
This matter is proven by breaking the links as indicated above, saving the document to somewhere else, and renaming the folder with the prior-linked images in, and then opening that saved version, the result is only the first few pictures show and the remainder are broken links, whilst the file itself is small in size, whereas the result should be all images show and a large file size.
I provide a link to the design folder which can be unpacked -
https://www.paintdrawer.co.uk/temp/stachys-betonica-woundworts-betonies.7z
The file to test in this way is
stachys-betonica-woundworts-betonies.odt

Impact high: When working with large files due to many images, it's normal to worked with linked resources, and then when distributing, to break the links for the distributed version. This entirely blocks this process.

Cheers, David

Steps to Reproduce:
As above

Actual Results:
As above

Expected Results:
As above


Reproducible: Always


User Profile Reset: No

Additional Info:
Version: 24.2.5.2 (X86_64) / LibreOffice Community
Build ID: bffef4ea93e59bebbeaf7f431bb02b1a39ee8a59
CPU threads: 8; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: en-GB (en_GB); UI: en-GB
Calc: threaded
Comment 2 DM 2024-08-11 14:44:25 UTC
Which is the Save option you are thinking should help as a workaround for bug?

Many thanks, David
Comment 3 raal 2024-08-17 18:41:52 UTC
No repro with Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: ccdf1096a6103d2ab8690e8e97dcf3496160ecff
CPU threads: 4; OS: Linux 6.5; UI render: default; VCL: gtk3
Locale: cs-CZ (cs_CZ.UTF-8); UI: en-US
Calc: threaded
Comment 4 DM 2024-08-17 19:03:37 UTC
thanks @raal, can you confirm you used the document I had attached, as they widely fail for me.
Comment 5 raal 2024-08-18 04:51:15 UTC
(In reply to DM from comment #4)
> thanks @raal, can you confirm you used the document I had attached, as they
> widely fail for me.

Yes, I used your document. After break all of the links, saved as new document, reopened, all pictures are present. Document is now 23 MB.
Comment 6 DM 2024-08-18 09:32:35 UTC
Thanks so much - I'll assume it will be cured with ver. 25. I'll install 24.8.0 pre-release to see if that helps, I actually meant to do so last time, but have 24.2 on. So I'll consider the bug on hold and will confirm it's okay in due course! d
Comment 7 DM 2024-08-18 11:43:12 UTC
I installed the latest pre-release, 24.8.0.3, it delinks a few more that 24.2 but still most the images are not delinked. I'll wait for ver 25 to come out and then report back!

Version: 24.8.0.3 (X86_64) / LibreOffice Community
Build ID: 0bdf1299c94fe897b119f97f3c613e9dca6be583
CPU threads: 8; OS: Windows 10 X86_64 (10.0 build 19045); UI render: Skia/Raster; VCL: win
Locale: en-GB (en_GB); UI: en-GB
Calc: threaded
Comment 8 raal 2024-08-18 14:01:21 UTC
(In reply to DM from comment #7)
> I installed the latest pre-release, 24.8.0.3, it delinks a few more that
> 24.2 but still most the images are not delinked. I'll wait for ver 25 to
> come out and then report back!
> 
Hello, dev builds of 25.2 are available here: https://dev-builds.libreoffice.org/daily/master/Win-x86_64@tb77-TDF/current/
Comment 9 DM 2024-08-25 17:40:19 UTC
Thanks, I'll install it on the RamDisk, I'll assume that won't impact the existing 24.8 installation. d
Comment 10 DM 2024-08-25 19:51:44 UTC
I've just tried it on a document and it doesn't work for me...
The file when opened shows all the pictures, which as a lossless PDF comes to about 56 MB. After breaking all the links and saving and then naming out the folder of images, resulting file is 1.7 Mb, with just the images on the first page embedded, all the remaining blank, showing as broken links.

Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: f9b5dad09dbdd56ff064096695a946b03e9e2914
CPU threads: 8; OS: Windows 10 X86_64 (10.0 build 19045); UI render: Skia/Vulkan; VCL: win
Locale: en-GB (en_GB); UI: en-GB
Calc: CL threaded
Comment 11 Buovjaga 2024-09-24 12:39:07 UTC
Repro.

1. Unpack https://www.paintdrawer.co.uk/temp/stachys-betonica-woundworts-betonies.7z
2. Open stachys-betonica-woundworts-betonies.odt, Edit - External Links
3. Select all links, Break Link
4. Save into a different directory, close
5. Temporarily rename stachys-betonica-woundworts-betonies directory
6. Open your file from step 4, check Edit - External Links

I did some digging in bibisect repos and then searched in Bugzilla to save time (lucky!). This is the same topic as bug 119661. The current halfway state started with the fix 6a36bedd0a418ce12543f797ab46f24ee57feb6c.

Arch Linux 64-bit
Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 4787fd4fc86230893a6da309f45964116b3a67df
CPU threads: 8; OS: Linux 6.10; UI render: default; VCL: kf6 (cairo+wayland)
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: CL threaded
Built on 24 September 2024