Go to Gallery->Backgrounds Right-click on a background and choose Insert->Background->Page or Paragraph The page style has then a link like this: <style:background-image xlink:href="../../../../opt/libreoffice4.0/program/../share/gallery/www-back/ice-blue.jpg" xlink:type="simple" xlink:actuate="onLoad"/> and the paragraph style looks like this in the document structure: <style:background-image xlink:href="../../../../opt/libreoffice4.0/program/../share/gallery/www-back/ice-light.jpg" xlink:type="simple" xlink:actuate="onLoad"/> Instead of being linked, these images should be embedded in the document structure. Currently you only have to move the document to a different folder and the image won't load anymore.
Confirmed. Linking is always "dangerous" and I think any linking to gallery images should be removed. Additionally if a user tries to link to any external resource, he should be warned about the consequences of his action.
You are right, it should not be possible to link to gallery images. We discussed this also on the UX-Advise list: http://nabble.documentfoundation.org/Libreoffice-ux-advise-Remove-outdated-Gallery-images-tp4067129p4067444.html I changed the title accordingly.
Samuel Mehrbrodt committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=4e3f7d32b80fcb44f20abe634a2035d2c90c9e08 fdo#67274 Always embed images from gallery The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
The mentioned commit fixes this problem only partly. The Problem described in Comment 0 still exists.
Can someone else please have a look at it? The Background URL is set here: http://opengrok.libreoffice.org/xref/core/svx/source/gallery2/galbrws2.cxx#372 Then the Image gets inserted here: http://opengrok.libreoffice.org/xref/core/sw/source/ui/shells/basesh.cxx#2662 Somewhere in between the SvxBrushItem (the background) is created as a linked graphic and that must be changed. But I don't know where that happens. Can someone give a hint or take this over? I mark this as MAB because it makes Documents depend on hard-coded image paths.
(Adding the Dev list to CC) I'd need some help with the Fix for this bug. Can someone have a look at Comment 5 and help me with this?
No idea but I assume code like this: 706 const Graphic aGrf( pGalleryItem->GetGraphic() ); 707 708 if ( nSelType & nsSelectionType::SEL_GRF ) 709 rSh.ReRead( aGrfName, aFltName, &aGrf ); 710 else 711 rSh.Insert( aGrfName, aFltName, aGrf ); Creates that Graphic - and that (somehow) the GraphicObject that gets created from that gets tagged as linked somehow - perhaps chasing rSh.Insert() and re-read to see what parameters they take might be useful (?)
CONFIRMED on LO 4.2.0.0.beta1 + Ubuntu 12.04.3 REPRO: - Open LibreOffice - Tools -> Gallery -> Backgrounds - Right-click on aqua (first background in list) and choose: Insert as Background -> Page - Right-click on the changed page background and select 'Page' - Select 'Background' tab - Under the 'File' section, the 'Link' checkbox is checked, and the filepath listed below the 'Browse' button is to a file in 'share/gallery' on disk. EXPECTED: - The background would be embedded in the file. - The 'Link' checkbox would be unchecked Adding repro information to whiteboard
not a MAB in my opionion.. * has always been that way for decades, * graphic as page backgrounds are not a very common usecase * easy workaround/manual fix (Goto Format|Page → Background and uncheck [ ] Link) Not saying that this shouldn't be fixed, but that's not so important to have for 4.2.0 (4.2.x is enough IMHO)
(This is an automated message.) Setting priority to highest as this is a 4.0 MAB. This is part of an effort to make the importance of MAB reflected in priority too.
Moving to mab4.1 (Bug 60270) because: - 4.0 reached EOL (End Of Life) - bug confirmed in later version
if issue is still present in 4.2.x current releases please move it to the mab4.2 list (Bug 65675) since 4.1.x is END OF LIFE
Removing from MAB - this is an enhancement and does not belong on mab list. Marking as enhancement also. The product works as designed, the request is just to change the design which by definition is an enhancement.
@Jan: it sounds like an easyhack. isn't it?
(In reply to Xisco Faulí from comment #14) > @Jan: it sounds like an easyhack. isn't it? it sure is, and a good one.
Created attachment 181288 [details] An ODT file with a custom background I am using LibreOffice 7.3 Writer. Version: 7.3.0.3 / LibreOffice Community Build ID: 0f246aa12d0eee4a0f7adcefbf7c878fc2238db3 CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3 Locale: en-US (en_US.UTF-8); UI: en-US Calc: threaded I no longer see "background" tab when opening "Gallery", which is now available from the sidebar. The menu option for "Gallery" is currently in: Insert > Media > Gallery On the other hand, it is possible to set a custom background using this method: https://ask.libreoffice.org/t/writer-custom-background-size-image-as-page-background-unwanted-images-are-not-deleted/44138/6 Styles > Default Page Style > (Right click) > Modify > Area > Image When I save the file as ODT, I see these in styles.xml: ... <draw:fill-image draw:name="Maple_20_Leaves" draw:display-name="Maple Leaves" xlink:href="Pictures/1000000000000200000002009F9CDFF76A1A9DB9.jpg" xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad"/> ... <style:background-image xlink:href="Pictures/1000000000000200000002009F9CDFF76A1A9DB9.jpg" xlink:type="simple" xlink:actuate="onLoad"/> The jpeg file is stored in the Pictures folder. It means that the files is now embedded in the document. Thus, I consider this issue fixed.
It is not really solved. Follow up bug report is bug 127322. Test it in Writer with a Gallery theme, that has images.
(In reply to Regina Henschel from comment #17) > It is not really solved. Follow up bug report is bug 127322. > Test it in Writer with a Gallery theme, that has images. You are right. I am reopening the issue. For testing, "Gallery" > "Bullets" can be used.
Reproduced in libreoffice-4.3.7.1 but it has been fixed since at least libreoffice-4.4.0.0.beta1. Tested back then with inserting a page background from the Background gallery, but can be tested in a recent trunk build with the Bullet gallery. Files are included in the file's Picture directory instead of being linked. Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: e9a0c97de95688b2f86bbb4dd8c823af5442401c CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3 Locale: en-AU (en_AU.UTF-8); UI: en-US Calc: threaded Couldn't find the fixing commit.