[Issue] Problem with https:// images

Discuss the word processor
arfgh
Posts: 566
Joined: Tue Mar 05, 2013 6:44 pm

[Issue] Problem with https:// images

Post by arfgh »

hey there friends.
There is a problem here with the drag and drop web content on write with images.
They arent getting loading into write, just empty object.
For some reasson that i dont know if i change the url location of the images that are commonly https://, to http://, they are inmediatly loaded.
I tried these days a portable version of libreoffice where with it the images are just loaded and embed autmatically into the document.

Do you know guys what kind of issue is happening in my AOO ?

thx in advance
Last edited by Hagar Delest on Wed Jan 23, 2019 10:56 pm, edited 1 time in total.
Reason: tagged issue
OpenOffice last version | Mageia Linux x64 | Ubuntu Linux | Windows 8.1 Enterprise x64 | Java last version
User avatar
Zizi64
Volunteer
Posts: 11352
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

Re: Problem with https:// images

Post by Zizi64 »

There is a problem here with the drag and drop web content on write with images.
ALWAYS download and optimize the pictures before you insert (embed) them into an ODF document. Do not use the drag&drop method for the internet content!
Tibor Kovacs, Hungary; LO7.5.8 /Win7-10 x64Prof.
PortableApps/winPenPack: LO3.3.0-7.6.2;AOO4.1.14
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
John_Ha
Volunteer
Posts: 9583
Joined: Fri Sep 18, 2009 5:51 pm
Location: UK

Re: Problem with https:// images

Post by John_Ha »

See [Tutorial] Some useful hints on using images for a discussion on how best to handle images in Writer.
LO 6.4.4.2, Windows 10 Home 64 bit

See the Writer Guide, the Writer FAQ, the Writer Tutorials and Writer for students.

Remember: Always save your Writer files as .odt files. - see here for the many reasons why.
arfgh
Posts: 566
Joined: Tue Mar 05, 2013 6:44 pm

Re: Problem with https:// images

Post by arfgh »

i know all that is required to know about images. And the function to embed images into document, neither works when the graphic objects didnt load the images. I have to repeat that with libreoffice portable the images are loaded if http or https in their url, and also they get automatically embed into document. So i dont know but should exist a problem in AOO.... or ?
OpenOffice last version | Mageia Linux x64 | Ubuntu Linux | Windows 8.1 Enterprise x64 | Java last version
John_Ha
Volunteer
Posts: 9583
Joined: Fri Sep 18, 2009 5:51 pm
Location: UK

Re: Problem with https:// images

Post by John_Ha »

arfgh wrote:i know all that is required to know about images.
I am in that case surprised you are asking questions.
arfgh wrote:And the function to embed images into document, neither works when the graphic objects didnt load the images. I have to repeat that with libreoffice portable the images are loaded if http or https in their url, and also they get automatically embed into document. So i dont know but should exist a problem in AOO.... or ?
It's web page dependent - see Item 13 in the tutorial.

If you need further advice give some web page addresses and the images on them causing problems describing

a) how you copy them,
b) how you insert them,
c) what result you get, and
d) what result you expect.
LO 6.4.4.2, Windows 10 Home 64 bit

See the Writer Guide, the Writer FAQ, the Writer Tutorials and Writer for students.

Remember: Always save your Writer files as .odt files. - see here for the many reasons why.
arfgh
Posts: 566
Joined: Tue Mar 05, 2013 6:44 pm

Re: Problem with https:// images

Post by arfgh »

just tested same thing with different machines. Same happen. Images are not loaded until the manual edit change to http://
Calling mr villeroy.
OpenOffice last version | Mageia Linux x64 | Ubuntu Linux | Windows 8.1 Enterprise x64 | Java last version
John_Ha
Volunteer
Posts: 9583
Joined: Fri Sep 18, 2009 5:51 pm
Location: UK

Re: Problem with https:// images

Post by John_Ha »

If you want help please answer the questions you have been asked.
LO 6.4.4.2, Windows 10 Home 64 bit

See the Writer Guide, the Writer FAQ, the Writer Tutorials and Writer for students.

Remember: Always save your Writer files as .odt files. - see here for the many reasons why.
arfgh
Posts: 566
Joined: Tue Mar 05, 2013 6:44 pm

Re: Problem with https:// images

Post by arfgh »

anyone ?
the issue is very... curious. But it is happening in other computer with other system that is full updated with windows 10. So it isnt about root certs... We need to know why that is happening.
OpenOffice last version | Mageia Linux x64 | Ubuntu Linux | Windows 8.1 Enterprise x64 | Java last version
John_Ha
Volunteer
Posts: 9583
Joined: Fri Sep 18, 2009 5:51 pm
Location: UK

Re: Problem with https:// images

Post by John_Ha »

I repeat, if you want help please answer the questions you have been asked.
LO 6.4.4.2, Windows 10 Home 64 bit

See the Writer Guide, the Writer FAQ, the Writer Tutorials and Writer for students.

Remember: Always save your Writer files as .odt files. - see here for the many reasons why.
YODA
Posts: 65
Joined: Fri Aug 10, 2018 4:06 am

Re: Problem with https:// images

Post by YODA »

Possibly because you are trying yo use it as an HTML Editor which it is not what it's primary purpose is.
Openoffice4.16 on windows 10 Libreoffice Version: 6.1.3.2 (x64)
User avatar
keme
Volunteer
Posts: 3699
Joined: Wed Nov 28, 2007 10:27 am
Location: Egersund, Norway

Re: Problem with https:// images

Post by keme »

arfgh wrote:...We need to know why that is happening.
I understand.

You may want the experts around here to help you find out what is happening. If you do, start by answering the four questions John_Ha asked above. While there are people with lots of experience in most aspects of OpenOffice use, we do not have a lot of clairvoyant helpers.

Most of us find it more rewarding to help people who make an effort to contribute to the solution. If we are left in the dark, we sometimes go elsewhere...
arfgh
Posts: 566
Joined: Tue Mar 05, 2013 6:44 pm

Re: Problem with https:// images

Post by arfgh »

no, just asking for help, i didnt ask you at all. Just throw some help of please, dont crash the thread.
OpenOffice last version | Mageia Linux x64 | Ubuntu Linux | Windows 8.1 Enterprise x64 | Java last version
John_Ha
Volunteer
Posts: 9583
Joined: Fri Sep 18, 2009 5:51 pm
Location: UK

Re: Problem with https:// images

Post by John_Ha »

I repeat my repetition: if you want help please answer the questions you have been asked.
LO 6.4.4.2, Windows 10 Home 64 bit

See the Writer Guide, the Writer FAQ, the Writer Tutorials and Writer for students.

Remember: Always save your Writer files as .odt files. - see here for the many reasons why.
User avatar
Zizi64
Volunteer
Posts: 11352
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

Re: Problem with https:// images

Post by Zizi64 »

Have you tried to DOWNLOAD and OPTIMIZE the pictures BEFORE you embed them into a document?
Tibor Kovacs, Hungary; LO7.5.8 /Win7-10 x64Prof.
PortableApps/winPenPack: LO3.3.0-7.6.2;AOO4.1.14
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
arfgh
Posts: 566
Joined: Tue Mar 05, 2013 6:44 pm

Re: Problem with https:// images

Post by arfgh »

Zizi64, in this case, the issue happen when drag and drop web content with images from the inet browser on writer. Highly useful feature. So the way to download and optmize is not the problem.
OpenOffice last version | Mageia Linux x64 | Ubuntu Linux | Windows 8.1 Enterprise x64 | Java last version
User avatar
RoryOF
Moderator
Posts: 34586
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Problem with https:// images

Post by RoryOF »

If you find drag and drop not satisfactory, use the download and optimise method.
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
arfgh
Posts: 566
Joined: Tue Mar 05, 2013 6:44 pm

Re: Problem with https:// images

Post by arfgh »

^^ not satisfactory ? did you read what i said about the problem ? it is not happening only on my computers and/or system. Please, help if you can or dont point in other direction !!
OpenOffice last version | Mageia Linux x64 | Ubuntu Linux | Windows 8.1 Enterprise x64 | Java last version
User avatar
Zizi64
Volunteer
Posts: 11352
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

Re: Problem with https:// images

Post by Zizi64 »

Highly useful feature.
In my opinion, it is not useful. The internet contents can cause too much compatibility problems, because they have too exotic properties.
Tibor Kovacs, Hungary; LO7.5.8 /Win7-10 x64Prof.
PortableApps/winPenPack: LO3.3.0-7.6.2;AOO4.1.14
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
arfgh
Posts: 566
Joined: Tue Mar 05, 2013 6:44 pm

Re: Problem with https:// images

Post by arfgh »

Zizi64, but works. Just to save little technical documents with info to remember, etc etc, and fast. Is a very useful feature.
OpenOffice last version | Mageia Linux x64 | Ubuntu Linux | Windows 8.1 Enterprise x64 | Java last version
Bill
Volunteer
Posts: 8932
Joined: Sat Nov 24, 2007 6:48 am

Re: Problem with https:// images

Post by Bill »

I can't reproduce the problem as described. Drag and drop doesn't work for me in either AOO or LO. Copy and paste works in LO but not in AOO. The problem may be related to this issue:

Issue 126000 - HTTPS does not work
AOO 4.1.14 on Ubuntu MATE 22.04
John_Ha
Volunteer
Posts: 9583
Joined: Fri Sep 18, 2009 5:51 pm
Location: UK

Re: Problem with https:// images

Post by John_Ha »

Dragging images from various web sites into Writer works fine for me. It is not recommended because of the many reasons given in the tutorial.
LO 6.4.4.2, Windows 10 Home 64 bit

See the Writer Guide, the Writer FAQ, the Writer Tutorials and Writer for students.

Remember: Always save your Writer files as .odt files. - see here for the many reasons why.
Bill
Volunteer
Posts: 8932
Joined: Sat Nov 24, 2007 6:48 am

Re: [Issue] Problem with https:// images

Post by Bill »

The problem I was having duplicating the problem seems to be related to Firefox. After switching to Chromium, drag and drop now works in LO, but still doesn't work in AOO.
AOO 4.1.14 on Ubuntu MATE 22.04
John_Ha
Volunteer
Posts: 9583
Joined: Fri Sep 18, 2009 5:51 pm
Location: UK

Re: [Issue] Problem with https:// images

Post by John_Ha »

Bill

I use Firefox 64.0.2 and successfully dragged images with it, from both http:/ and https:/ locations, and into AOO 4.1.6 Writer under W7.

Also, doing Comment 1 in the bug report works fine for me.
LO 6.4.4.2, Windows 10 Home 64 bit

See the Writer Guide, the Writer FAQ, the Writer Tutorials and Writer for students.

Remember: Always save your Writer files as .odt files. - see here for the many reasons why.
Bill
Volunteer
Posts: 8932
Joined: Sat Nov 24, 2007 6:48 am

Re: [Issue] Problem with https:// images

Post by Bill »

I'm also using Firefox 64.0.2 but on Manjaro. Dragging an image from the Internet to AOO Writer 4.1.6 displays HTML code in Writer instead of the image. Using copy and paste to copy an image on the Internet and paste it in Writer works on some sites but not others. Oddly this forum is one site where copy and paste doesn't work. AOO Writer displays a placeholder box with the link in the box. The image itself is never displayed by AOO Writer. Changing https to http in the link doesn't help. If I close AOO Writer and open the document in LO Writer, the images are loaded and displayed.

This is probably the bug report relevant to what I'm seeing happen in Manjaro:

Issue 62995 - drag and drop of images from web browser inconsistent
AOO 4.1.14 on Ubuntu MATE 22.04
User avatar
RoryOF
Moderator
Posts: 34586
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: [Issue] Problem with https:// images

Post by RoryOF »

One test dragging from Internet to AOO Writer worked for me, browser Opera, running Xubuntu 18.04.1 64 bit.
 Edit: From several different sites, https images dragged and dropped correctly to Writer. 
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
John_Ha
Volunteer
Posts: 9583
Joined: Fri Sep 18, 2009 5:51 pm
Location: UK

Re: [Issue] Problem with https:// images

Post by John_Ha »

Bill wrote:Oddly this forum is one site where copy and paste doesn't work.
Bill

That is strange. Both dragging and copy/paste from this forum work fine for me. I used the forum header image on this page while I was writing this reply.

Item 7. in the bug report works fine for me too.
7. click on the telephone symbol on web page and drag and drop to OOo WRITER document
expected: image should appear in OOo document
actual: nothing happens
Clipboard01.gif
Clipboard01.gif (6.58 KiB) Viewed 3381 times
I assume the black surround is transparent on the web page.
A thought. Start FF with Add-ons disabled (Help > Restart with Add-ons Disabled). Does it now work?
works fine for me.odt
(19.73 KiB) Downloaded 127 times
LO 6.4.4.2, Windows 10 Home 64 bit

See the Writer Guide, the Writer FAQ, the Writer Tutorials and Writer for students.

Remember: Always save your Writer files as .odt files. - see here for the many reasons why.
User avatar
keme
Volunteer
Posts: 3699
Joined: Wed Nov 28, 2007 10:27 am
Location: Egersund, Norway

Re: [Issue] Problem with https:// images

Post by keme »

Might it be that the problem is connected to whether pictures are on sites that require login?
It is conceivable that LO hooks into Chrome/Chromium authentication, while AOO does not handle authentication situations.
If the site allows http "fallback", and the resources (pictures) are available also when you are not logged in, it makes some sense that http works when https doesn't.
John_Ha
Volunteer
Posts: 9583
Joined: Fri Sep 18, 2009 5:51 pm
Location: UK

Re: [Issue] Problem with https:// images

Post by John_Ha »

keme

Both drag and copy/paste still work fine for me when I log off this site. I'm betting on a browser configuration problem.

In fact, I have just tested Chrome: copy/paste from Chrome works but dragging from Chrome gives me the web address.

That strongly suggest the problem lies in the browser.

This is a document with the first image dragged OK from Firefox. The second (identical) image failed when dragged from Chrome.
test drag.gif
The relevant content.xml is:

Code: Select all

	<office:body>
		<office:text>
			<office:forms form:automatic-focus="false" form:apply-design-mode="false"/>
			<text:sequence-decls>
				<text:sequence-decl text:display-outline-level="0" text:name="Illustration"/>
				<text:sequence-decl text:display-outline-level="0" text:name="Table"/>
				<text:sequence-decl text:display-outline-level="0" text:name="Text"/>
				<text:sequence-decl text:display-outline-level="0" text:name="Drawing"/>
			</text:sequence-decls>
			<text:p text:style-name="Standard">
				<draw:frame draw:style-name="fr1" draw:name="graphics1" text:anchor-type="paragraph" svg:x="23.62mm" svg:y="10.58mm" svg:width="119.06mm" svg:height="20.37mm" draw:z-index="0">
					<draw:image xlink:href="Pictures/10000000000001C20000004D089AF5AA.bmp" xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad"/>
				</draw:frame>First image – drag from Firefox</text:p>
			<text:p text:style-name="Standard"/>
			<text:p text:style-name="Standard"/>
			<text:p text:style-name="Standard"/>
			<text:p text:style-name="Standard">Second image – drag from Chrome</text:p>
			<text:p text:style-name="Standard">
				<draw:frame draw:style-name="fr2" draw:name="graphics2" text:anchor-type="as-char" svg:width="119.06mm" svg:height="20.37mm" draw:z-index="1">
					<draw:image xlink:href="https://forum.openoffice.org/en/forum/styles/prosilver/imageset/logo_forum_en.png" xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad"/>
				</draw:frame>
			</text:p>
			<text:p text:style-name="Standard"/>
		</office:text>
	</office:body>
This is the file.
test dragging.odt
(19.02 KiB) Downloaded 147 times
If I compare what seem to be the relevant lines we have

Code: Select all

<draw:frame draw:style-name="fr1" draw:name="graphics1" text:anchor-type="paragraph" svg:x="23.62mm" svg:y="10.58mm" svg:width="119.06mm" svg:height="20.37mm" draw:z-index="0">
<draw:image xlink:href="Pictures/10000000000001C20000004D089AF5AA.bmp" xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad"/>
and
<draw:frame draw:style-name="fr2" draw:name="graphics2" text:anchor-type="as-char" svg:width="119.06mm" svg:height="20.37mm" draw:z-index="1">
<draw:image xlink:href="https://forum.openoffice.org/en/forum/styles/prosilver/imageset/logo_forum_en.png" xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad"/>
They are significantly different but I don't understand XML well enough to analyse it. However the difference between

Code: Select all

draw:image xlink:href="Pictures/10000000000001C20000004D089AF5AA.bmp"
which displays and
draw:image xlink:href="https://forum.openoffice.org/en/forum/styles/prosilver/imageset/logo_forum_en.png"
which does not display
is probably the cause.

The Chrome "image" appears to be linked. If I go Edit > Links ..., and break the link, the message is replaced by Read Error, showing a missing image.
LO 6.4.4.2, Windows 10 Home 64 bit

See the Writer Guide, the Writer FAQ, the Writer Tutorials and Writer for students.

Remember: Always save your Writer files as .odt files. - see here for the many reasons why.
John_Ha
Volunteer
Posts: 9583
Joined: Fri Sep 18, 2009 5:51 pm
Location: UK

Re: [Issue] Problem with https:// images

Post by John_Ha »

More debugging.

I attempted to add a linked image by Insert > Picture > From file ..., and pasting

Code: Select all

https://forum.openoffice.org/en/forum/styles/prosilver/imageset/logo_forum_en.png

into the File name window. It did not come in.

When I had Chrome open (FF is my default) I got a Windows Security pop-up as below. I guessed it was for logging on to the forum so entered my username and password but it rejected it and popped up again. When I had FF open I did not get the window. In neither case did the image appear. Nor did it come in when I tried to embed it.

I then tried from an http:/ site (I used http://www.bielefeldundbuss.de) and the image appeared when I linked and when I embedded it.

So it seems to be browser dependent for dragging. In AOO itself, it is OK on an http sites but fails on https sites.
Attachments
Clipboard01.png
LO 6.4.4.2, Windows 10 Home 64 bit

See the Writer Guide, the Writer FAQ, the Writer Tutorials and Writer for students.

Remember: Always save your Writer files as .odt files. - see here for the many reasons why.
John_Ha
Volunteer
Posts: 9583
Joined: Fri Sep 18, 2009 5:51 pm
Location: UK

Re: [Issue] Problem with https:// images

Post by John_Ha »

The image on the forum web page is coded as this:

Code: Select all

<a href="./index.php" title="Board index" id="logo"><img src="./styles/prosilver/imageset/logo_forum_en.png" width="450" height="77" alt="" title="" /></a>
There is another anomaly.

The dragged PNG image is stored in the .odt file as a BMP image and whereas the original PNG image is a mere 10.7kBytes, the stored BMP is over 10x larger at 139 kBytes.

As expected it is far worse with photos.

When I go to https://en.wikipedia.org/wiki/Golden_Ga ... ge-001.jpg and drag the image of the bridge to Writer it too is stored as a BMP. Whereas the original 3,264 x 2,448 JPG is 2.96 MBytes the stored BMP is 11x larger at 32 MBytes. As a BMP of a photo compresses poorly, the .odt file is 15.8 MBytes.
Clipboard01.gif
This is one of the many reasons why dragging or copy/pasting an image from the web is not recommended - see Item 13 in [Tutorial] Some useful hints on using images for a discussion.
LO 6.4.4.2, Windows 10 Home 64 bit

See the Writer Guide, the Writer FAQ, the Writer Tutorials and Writer for students.

Remember: Always save your Writer files as .odt files. - see here for the many reasons why.
Post Reply