[Issue] Problem with https:// images

Discuss the word processor

[Issue] Problem with https:// images

Postby arfgh » Sun Jan 20, 2019 6:12 pm

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 - Windows 8.1 Enterprise x64 - Windows XP x64 SP2
arfgh
 
Posts: 443
Joined: Tue Mar 05, 2013 6:44 pm

Re: Problem with https:// images

Postby Zizi64 » Sun Jan 20, 2019 8:02 pm

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; LO4.4.7, LO6.1.5 on Win7-10 x64Prof.
PortableApps, winPenPack: LO3.3.0-6.2.2; AOO4.1.5
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.
User avatar
Zizi64
Volunteer
 
Posts: 7835
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

Re: Problem with https:// images

Postby John_Ha » Sun Jan 20, 2019 9:04 pm

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

See the Writer Manual, the Writer FAQ, the Writer Tutorials and the Writer guide.

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

Re: Problem with https:// images

Postby arfgh » Sun Jan 20, 2019 10:58 pm

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 - Windows 8.1 Enterprise x64 - Windows XP x64 SP2
arfgh
 
Posts: 443
Joined: Tue Mar 05, 2013 6:44 pm

Re: Problem with https:// images

Postby John_Ha » Mon Jan 21, 2019 1:22 am

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.
AOO 4.1.6, Windows 7 Home 64 bit

See the Writer Manual, the Writer FAQ, the Writer Tutorials and the Writer guide.

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

Re: Problem with https:// images

Postby arfgh » Mon Jan 21, 2019 4:53 am

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 - Windows 8.1 Enterprise x64 - Windows XP x64 SP2
arfgh
 
Posts: 443
Joined: Tue Mar 05, 2013 6:44 pm

Re: Problem with https:// images

Postby John_Ha » Mon Jan 21, 2019 11:48 am

If you want help please answer the questions you have been asked.
AOO 4.1.6, Windows 7 Home 64 bit

See the Writer Manual, the Writer FAQ, the Writer Tutorials and the Writer guide.

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

Re: Problem with https:// images

Postby arfgh » Tue Jan 22, 2019 4:03 pm

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 - Windows 8.1 Enterprise x64 - Windows XP x64 SP2
arfgh
 
Posts: 443
Joined: Tue Mar 05, 2013 6:44 pm

Re: Problem with https:// images

Postby John_Ha » Tue Jan 22, 2019 5:46 pm

I repeat, if you want help please answer the questions you have been asked.
AOO 4.1.6, Windows 7 Home 64 bit

See the Writer Manual, the Writer FAQ, the Writer Tutorials and the Writer guide.

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

Re: Problem with https:// images

Postby YODA » Tue Jan 22, 2019 6:09 pm

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)
YODA
 
Posts: 41
Joined: Fri Aug 10, 2018 4:06 am

Re: Problem with https:// images

Postby keme » Tue Jan 22, 2019 8:34 pm

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...
User avatar
keme
Volunteer
 
Posts: 3104
Joined: Wed Nov 28, 2007 10:27 am
Location: Egersund, Norway

Re: Problem with https:// images

Postby arfgh » Tue Jan 22, 2019 10:52 pm

no, just asking for help, i didnt ask you at all. Just throw some help of please, dont crash the thread.
OpenOffice last version - Windows 8.1 Enterprise x64 - Windows XP x64 SP2
arfgh
 
Posts: 443
Joined: Tue Mar 05, 2013 6:44 pm

Re: Problem with https:// images

Postby John_Ha » Tue Jan 22, 2019 11:21 pm

I repeat my repetition: if you want help please answer the questions you have been asked.
AOO 4.1.6, Windows 7 Home 64 bit

See the Writer Manual, the Writer FAQ, the Writer Tutorials and the Writer guide.

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

Re: Problem with https:// images

Postby Zizi64 » Tue Jan 22, 2019 11:28 pm

Have you tried to DOWNLOAD and OPTIMIZE the pictures BEFORE you embed them into a document?
Tibor Kovacs, Hungary; LO4.4.7, LO6.1.5 on Win7-10 x64Prof.
PortableApps, winPenPack: LO3.3.0-6.2.2; AOO4.1.5
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.
User avatar
Zizi64
Volunteer
 
Posts: 7835
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

Re: Problem with https:// images

Postby arfgh » Wed Jan 23, 2019 2:36 pm

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 - Windows 8.1 Enterprise x64 - Windows XP x64 SP2
arfgh
 
Posts: 443
Joined: Tue Mar 05, 2013 6:44 pm

Re: Problem with https:// images

Postby RoryOF » Wed Jan 23, 2019 2:45 pm

If you find drag and drop not satisfactory, use the download and optimise method.
Apache OpenOffice 4.1.6 on Xubuntu 18.04.2 (mostly 64 bit version) and very infrequently on Win2K/XP
User avatar
RoryOF
Moderator
 
Posts: 28576
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Problem with https:// images

Postby arfgh » Wed Jan 23, 2019 4:44 pm

^^ 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 - Windows 8.1 Enterprise x64 - Windows XP x64 SP2
arfgh
 
Posts: 443
Joined: Tue Mar 05, 2013 6:44 pm

Re: Problem with https:// images

Postby Zizi64 » Wed Jan 23, 2019 6:55 pm

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; LO4.4.7, LO6.1.5 on Win7-10 x64Prof.
PortableApps, winPenPack: LO3.3.0-6.2.2; AOO4.1.5
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.
User avatar
Zizi64
Volunteer
 
Posts: 7835
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

Re: Problem with https:// images

Postby arfgh » Wed Jan 23, 2019 7:07 pm

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 - Windows 8.1 Enterprise x64 - Windows XP x64 SP2
arfgh
 
Posts: 443
Joined: Tue Mar 05, 2013 6:44 pm

Re: Problem with https:// images

Postby Bill » Wed Jan 23, 2019 10:08 pm

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.6 and LO 6.2.0.3 on Manjaro MATE
Bill
Volunteer
 
Posts: 7171
Joined: Sat Nov 24, 2007 6:48 am

Re: Problem with https:// images

Postby John_Ha » Wed Jan 23, 2019 10:50 pm

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.
AOO 4.1.6, Windows 7 Home 64 bit

See the Writer Manual, the Writer FAQ, the Writer Tutorials and the Writer guide.

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

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

Postby Bill » Thu Jan 24, 2019 12:34 am

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.6 and LO 6.2.0.3 on Manjaro MATE
Bill
Volunteer
 
Posts: 7171
Joined: Sat Nov 24, 2007 6:48 am

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

Postby John_Ha » Thu Jan 24, 2019 2:22 am

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.
AOO 4.1.6, Windows 7 Home 64 bit

See the Writer Manual, the Writer FAQ, the Writer Tutorials and the Writer guide.

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

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

Postby Bill » Thu Jan 24, 2019 8:28 pm

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.6 and LO 6.2.0.3 on Manjaro MATE
Bill
Volunteer
 
Posts: 7171
Joined: Sat Nov 24, 2007 6:48 am

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

Postby RoryOF » Thu Jan 24, 2019 8:37 pm

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.6 on Xubuntu 18.04.2 (mostly 64 bit version) and very infrequently on Win2K/XP
User avatar
RoryOF
Moderator
 
Posts: 28576
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

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

Postby John_Ha » Thu Jan 24, 2019 8:44 pm

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 445 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 5 times
AOO 4.1.6, Windows 7 Home 64 bit

See the Writer Manual, the Writer FAQ, the Writer Tutorials and the Writer guide.

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

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

Postby keme » Thu Jan 24, 2019 10:37 pm

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.
User avatar
keme
Volunteer
 
Posts: 3104
Joined: Wed Nov 28, 2007 10:27 am
Location: Egersund, Norway

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

Postby John_Ha » Thu Jan 24, 2019 11:27 pm

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   Expand viewCollapse view
   <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 11 times

If I compare what seem to be the relevant lines we have

Code: Select all   Expand viewCollapse view
<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   Expand viewCollapse view
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.
AOO 4.1.6, Windows 7 Home 64 bit

See the Writer Manual, the Writer FAQ, the Writer Tutorials and the Writer guide.

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

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

Postby John_Ha » Thu Jan 24, 2019 11:57 pm

More debugging.

I attempted to add a linked image by Insert > Picture > From file ..., and pasting
Code: Select all   Expand viewCollapse view
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
AOO 4.1.6, Windows 7 Home 64 bit

See the Writer Manual, the Writer FAQ, the Writer Tutorials and the Writer guide.

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

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

Postby John_Ha » Fri Jan 25, 2019 2:20 pm

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

Code: Select all   Expand viewCollapse view
<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.
AOO 4.1.6, Windows 7 Home 64 bit

See the Writer Manual, the Writer FAQ, the Writer Tutorials and the Writer guide.

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

Next

Return to Writer

Who is online

Users browsing this forum: No registered users and 14 guests