Bug 154221 - Insert image URL
Summary: Insert image URL
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.5.1.2 release
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-16 00:22 UTC by Shmuel (Seymour J.) Metz
Modified: 2023-03-20 17:30 UTC (History)
2 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 Shmuel (Seymour J.) Metz 2023-03-16 00:22:22 UTC
Provide a means to insert an image URL into a document and to use that URL rather than the actual image when exporting as HTML. Ideally this should include generating the URL from the browse (file selection) dialog.
Comment 1 Stéphane Guillou (stragu) 2023-03-16 15:55:48 UTC
Hi Shmuel

I am not sure I understand.

I have inserted the image URL https://www.libreoffice.org/themes/libreofficenew/img/header2.jpg in a Writer document and then File > Preview in Browser, or File > Export > HTML, and the URL (as an active hyperlink) is displayed. No image is displayed.

What exactly is the problem? Please provide a series of steps, possibly with an example document if necessary, for us to test.

Thank you!
Comment 2 Shmuel (Seymour J.) Metz 2023-03-16 16:34:13 UTC
I want the image to be rendered by LibreOffice, but I also want the URL to be retained and inserted into an IMG tag when converting to HTML, rather than exporting the actual image..
Comment 3 Stéphane Guillou (stragu) 2023-03-17 21:51:53 UTC
This is already possible by using the URL of the file when inserting the image, and ticking the options "link" at the bottom of the dialog, and using "keep link" when it gives you the choice to embed the actual file instead.

The exported HTML will use the URL as a source in the image tag.
Comment 4 Shmuel (Seymour J.) Metz 2023-03-20 17:05:17 UTC
Thanks. When did that come in? Is there a way to set a default of converting files selected from Browse to relative URLs?

BTW, I noticed that I can set a link for the image.
Comment 5 Stéphane Guillou (stragu) 2023-03-20 17:30:17 UTC
I'm not sure when that started being possible but it has been available for quite a few years. Understandably, not so easily discoverable. Unsure about a default but that might be a question for ask.libreoffice.org.
Thank you!