[Issue] Problem with https:// images

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

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

Post by arfgh »

friends,like i said you, i tried 2 machines. Windows 8.1 that never is updated from windows updates, and windows 10 of a friend that is all days connected to windows update. I said that because i thought that some out of date root certificates may be involved with the issue. Both AOO and LO use the NSS firefox certs, isnt it ?

The question is, yes, sometimes, the images get loaded even if their url is https:// but the most cases they dont get loaded. Then i tried to do the test with libreOffice last version portable, and worked at first, and even the images got embedded into the document. I dont know if AOO allow us to configure that behavior, or not.. just to allow auto-embbed images on user setting. All the tests about the problem i did are with drag and drop from firefox.

i tried to drag and drop this url John_Ha said: https://en.wikipedia.org/wiki/Golden_Gate_Bridge
and all the images got loaded into writer. But why ? now go for example to some article at 'wikia'. Select some text with some image, and drag and drop it on writer, the images on the selection wont be loaded... So where is the problem ? check attachment. Those images wont get loaded, but if you change the url from https to http like i said, they will. With the same example if i do the same on LO, the images get loaded and automatically embedded into the document.

Yes, drag and drop and copy paste show the same issue i said.
Attachments
test - no images.odt
(14.41 KiB) Downloaded 109 times
OpenOffice last version | Mageia Linux x64 | Ubuntu Linux | Windows 8.1 Enterprise x64 | Java last version
Bill
Volunteer
Posts: 8933
Joined: Sat Nov 24, 2007 6:48 am

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

Post by Bill »

John_Ha wrote: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.
I just found this open bug report for Firefox on Windows:

When I drag and drop a JPG image from Firefox to other program the final result is a BMP

This may be why your PNG images are being stored as BMP images, but I don't understand why the images are being embedded and not linked.

An option to embed images dragged from HTML pages to Writer was requested in 2004. AFAIK, nothing has been done to implement this option:

Issue 37652 - set default options for pasting images from HTML content (embed graphics instead of linking them)
AOO 4.1.14 on Ubuntu MATE 22.04
Bill
Volunteer
Posts: 8933
Joined: Sat Nov 24, 2007 6:48 am

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

Post by Bill »

John_Ha wrote: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.
When I drag the JPG image to AOO Writer from Firefox, the HTML code for the image is dropped as plain text. No image is inserted in the document. When I drag the JPG image to AOO Writer from Chromium, the image is dropped as a linked image. When I break the link, the image is stored in the document as a 17.8 kB JPG and the ODT file is only 35.1 kB. The image does not change to BMP.
AOO 4.1.14 on Ubuntu MATE 22.04
John_Ha
Volunteer
Posts: 9584
Joined: Fri Sep 18, 2009 5:51 pm
Location: UK

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

Post by John_Ha »

Bill

It is very strange. I don't know enough about how applications exchange data when drag operates so I am at a loss to comment.
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: 8933
Joined: Sat Nov 24, 2007 6:48 am

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

Post by Bill »

Try dragging the JPG image from Wikipedia to the Desktop using Firefox. If the dropped image is still JPG then there is a bug in AOO causing AOO to use the wrong image, possibly a temporary file downloaded by Firefox. Any image dragged to Writer from the Web should be inserted as a linked image. Only local images should be embedded.

Drag & Drop creates .BMP files in TEMP folder
AOO 4.1.14 on Ubuntu MATE 22.04
John_Ha
Volunteer
Posts: 9584
Joined: Fri Sep 18, 2009 5:51 pm
Location: UK

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

Post by John_Ha »

Bill wrote:Try dragging the JPG image from Wikipedia to the Desktop using Firefox. If the dropped image is still JPG then there is a bug in AOO causing AOO to use the wrong image, possibly a temporary file downloaded by Firefox. Any image dragged to Writer from the Web should be inserted as a linked image. Only local images should be embedded.

Drag & Drop creates .BMP files in TEMP folder
Bill

I dragged https://upload.wikimedia.org/wikipedia/ ... ped%29.jpg to the desktop and it landed as a JPG file.

When I dragged it from Firefox to Writer it was inserted as a BMP.

When I dragged it from the desktop to Writer it was inserted as a JPG.

When I accessed the image on the desktop through Firefox (by typing C:\ in the address bar and navigating to it) I got two results. If I dragged the image filename it inserts as below, where I need to ctrl+click to see the image which is never itself inserted - see .odt file. But if I first open the image in Firefox by double clicking the image name and then drag the image it is inserted as a BMP.
Clipboard01.gif
Attachments
desktop image accessed by Firefox and dragged to Writer.odt
Writer file
(10.76 KiB) Downloaded 122 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.
arfgh
Posts: 566
Joined: Tue Mar 05, 2013 6:44 pm

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

Post by arfgh »

yes friends, but what is wrong on deep ? which is the exactly problem ?
OpenOffice last version | Mageia Linux x64 | Ubuntu Linux | Windows 8.1 Enterprise x64 | Java last version
Bill
Volunteer
Posts: 8933
Joined: Sat Nov 24, 2007 6:48 am

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

Post by Bill »

The linked images in the sample document are in the .webd format which isn't supported by AOO. I don't know why they load after changing https to http. See the bug report:

Issue 123845 - Add support for WebP images

Edit: There's also a bug report for LO:

Bug 108147 (WebP) - Implement support for filter import and playback of WebP
AOO 4.1.14 on Ubuntu MATE 22.04
arfgh
Posts: 566
Joined: Tue Mar 05, 2013 6:44 pm

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

Post by arfgh »

well, i just were around the problem, and then i changed the url to 'http' and did work.
with the last LO in portable format, i found the exposed, the images load always and get embedded into document, highly useful, but a user config should be perfect on that.

Anyways, i did a little macro in basic to change the images url, but, do you know guys other way to fix that while not bugfix in AOO ?
OpenOffice last version | Mageia Linux x64 | Ubuntu Linux | Windows 8.1 Enterprise x64 | Java last version
Bill
Volunteer
Posts: 8933
Joined: Sat Nov 24, 2007 6:48 am

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

Post by Bill »

While changing "https" to "http" works in this case, it may not work for images on other Web sites. Try some images from this site:

WebP Gallery
AOO 4.1.14 on Ubuntu MATE 22.04
Bill
Volunteer
Posts: 8933
Joined: Sat Nov 24, 2007 6:48 am

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

Post by Bill »

I tried dragging a .webp image from the WebP Gallery site directly to AOO Writer and LO Writer and the results were completely unsatisfactory for both. Neither displayed the image and LO Writer even became non-responsive and I had to force quit to close LO Writer.

What I did that worked was to drag the .webp image to the Desktop, convert it to a compatible format, then drag the compatible image to AOO Writer and LO Writer. While this may not be as convenient as dragging directly in to Writer, it has the advantage that the image is always displayed and can be embedded by default. If multiple images need to be converted, the images can be dragged in to a folder and a batch converter (ImageMagick is one) can be used to convert all images in the folder.
AOO 4.1.14 on Ubuntu MATE 22.04
Post Reply