Bug 120718 - Legacy background extension does not work
Summary: Legacy background extension does not work
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Extensions (show other bugs)
(earliest affected)
Hardware: All All
: medium normal
Assignee: Heiko Tietze
: 125601 (view as bug list)
Depends on: 125521
  Show dependency treegraph
Reported: 2018-10-20 04:49 UTC by Franklin Weng
Modified: 2021-04-07 08:58 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:
Regression By:

Screenshot from LO 7.1 (239.71 KB, image/png)
2021-04-07 05:17 UTC, Volga

Note You need to log in before you can comment on or make changes to this bug.
Description Franklin Weng 2018-10-20 04:49:10 UTC
In the 6.1 release notes:
Background images in Gallery and Area Fill dialog completely reworked tdf#114817 (Andreas Kainz, Heiko Tietze)

New Areafill backgrounds
This change breaks documents with relative links to the gallery, which was possible some time ago. Affected users can install the legacy background images per extension (https://extensions.libreoffice.org/extensions/legacy-gallery-backgrounds).

However after installing the legacy-gallery-backgrounds, it showed the "background" catalog in the gallery but doesn't work.  No matter drag-and-drop, copy-and-paste, no images will be inserted in the main area.

Steps to Reproduce:
1. Install Legacy gallery Backgrounds extension in version 6.1
2. Open Draw or Impress and click "gallery" in the side bar
3. choose "background" and try to add a background image into the main part

Actual Results:
It could not insert the background image into the main part

Expected Results:
It should work

Reproducible: Always

User Profile Reset: No

Additional Info:
This bug is reported by a user in Taiwan.  I've told him to use Areafill feature instead.  However I've also confirmed that the extension does not work.
Comment 1 Franklin Weng 2018-10-20 04:49:43 UTC
Reported by user in Taiwan.  Confirmed by me.

Original report: https://ask.libreoffice.org/zh-tw/question/169263/61ban-hua-lang-backgroundsgong-neng-cuo-wu-xun-xi/
Comment 2 Xisco Faulí 2018-10-23 10:27:58 UTC
it seems to be an older problem.
I can also reproduce it in

Build ID: 9feb7f7039a3b59974cbf266922177e961a52dd1
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3; 
Locale: ca-ES (ca_ES.UTF-8); Calc: group

but not in

Build ID: 4136757b4e51c4e6f7cb4132c95538a7f831ef2c
CPU Threads: 4; OS Version: Linux 4.15; UI Render: default; VCL: gtk3; Layout Engine: new; 
Locale: en-US (ca_ES.UTF-8); Calc: group
Comment 3 Xisco Faulí 2018-10-23 10:41:09 UTC
So it seems on Linux it stopped working somewhere in version 5.4 while on Window it stopped working later, in version 6.1, most likely related to the image handling refactoring...
Comment 4 Xisco Faulí 2018-10-23 10:59:18 UTC Comment hidden (obsolete)
Comment 5 Xisco Faulí 2018-10-23 11:07:27 UTC
@Andreas, @Heiko, forgot about my analysis in comment 4, it's completely wrong...
Comment 6 Xisco Faulí 2018-10-23 11:14:27 UTC
So, an open question, has it even worked on windows?

I can reproduce the problem back to 

Build ID: 5b168b3fa568e48e795234dc5fa454bf24c9805e
CPU Threads: 16; OS Version: Windows 6.29; UI Render: default; 
Locale: en-GB (en_GB)

I think the extension is just wrong. It doesn't work on Win and it stopped working on Linux in LibreOffice 5.4... would be nice to know who the author is...
Comment 7 Heiko Tietze 2018-10-24 10:37:41 UTC
Will check this
Comment 8 Heiko Tietze 2018-11-09 12:59:46 UTC
I updated the extension to v1.1 and it should work well now with all current versions.
Comment 9 Heiko Tietze 2019-05-27 11:32:15 UTC
Issue is back (https://design.blog.documentfoundation.org/2018/08/08/whats-new-in-libreoffice-6-1/#comment-13861). Both available versions of the extension do not work with LibO nor
Comment 10 Volga 2019-06-02 09:45:29 UTC
See: bug 125601
Comment 11 Xisco Faulí 2019-06-04 10:29:44 UTC
*** Bug 125601 has been marked as a duplicate of this bug. ***
Comment 12 Volga 2021-04-07 05:17:49 UTC
Created attachment 170987 [details]
Screenshot from LO 7.1

LibreOffice 7.1.2 doesn’t insert an image from this extension, but instead showing Insert Area dialog.
Version: (x64) / LibreOffice Community
Build ID: 8a45595d069ef5570103caea1b71cc9d82b2aae4
CPU threads: 4; OS: Windows 10.0 Build 19042; UI render: Skia/Raster; VCL: win
Locale: zh-CN (zh_CN); UI: zh-CN
Calc: threaded
Comment 13 Heiko Tietze 2021-04-07 08:58:14 UTC
Workflow is to create a new gallery and drag n' drop images or use the add function to fill it up. However, the gallery uses the full path of the images, which doesn't exist on your system. And I have no idea how to change this. 

When done the extension is just a wrapper around the new sdg, sdv, thm files.