Summary: | Image copied from browser is not shown in Writer | ||
---|---|---|---|
Product: | LibreOffice | Reporter: | Olivier <oc-spam65> |
Component: | Writer | Assignee: | Not Assigned <libreoffice-bugs> |
Status: | UNCONFIRMED --- | ||
Severity: | normal | CC: | danielmoisiowork, ilmari.lauhakangas, miguelangelrv |
Priority: | medium | ||
Version: | 7.4.7.2 release | ||
Hardware: | All | ||
OS: | Linux (All) | ||
Whiteboard: | |||
Crash report or crash signature: | Regression By: | ||
Attachments: |
Document after "paste"
Screenshot (document after "paste") Document after "break link" Screenshot (after "break link") screenshot of example_2023.odt les techniques page copy 4 cases of image insertion Firefox Copy Paste |
Description
Olivier
2023-07-28 21:26:47 UTC
Created attachment 188619 [details]
Document after "paste"
Created attachment 188620 [details]
Screenshot (document after "paste")
Created attachment 188621 [details]
Document after "break link"
Created attachment 188622 [details]
Screenshot (after "break link")
Internet source page: https://www.chaussuredefrance.com/sites/fr/le_monde_de_la_chaussure/Lachaussure/les_techniques_de_fabrication.html Have you enabled? Menu/Tools/Options/LibreOffice Writer/View – Display – Images and objects. Yes, of course. Menu/View/Images and charts? If it doesn't work either, Please test in safe mode, Menu/Help/Restart in Safe Mode (In reply to m.a.riosv from comment #8) > Menu/View/Images and charts? Yes of course. If I insert an image file from my computer in that same document, I can see it. The problem, as described, is with image links. (In reply to m.a.riosv from comment #9) > If it doesn't work either, > Please test in safe mode, Menu/Help/Restart in Safe Mode "Safe Mode" didn't help: the image is still not visible. Created attachment 188648 [details]
screenshot of example_2023.odt
Olivier, This is interesting - in both versions below when I open your file example_2023.odt the image of the partially stitched shoe is there. I attached a screenshot just so you can see it. I also copied the same image from the website myself in a blank writer document and it shows up as you would expect. Given the impact of French fashion on the world I take this very seriously ;). Maybe I can ask a follow up: I attached an example of how I highlighted the webpage image prior to CTRL+C - is that how you were selecting the image? Like dragging your mouse over the area then just copying it? Because if so I'm just not sure what to say - maybe it's a version bug and if you download the latest it will cure it ... but I'd hate to have something so basic be an ongoing bug because like - this is something that needs to work. Version: 7.5.5.2 (X86_64) / LibreOffice Community Build ID: 50(Build:2) CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3 Locale: en-US (en_US.UTF-8); UI: en-US Ubuntu package version: 4:7.5.5~rc2-0ubuntu0.22.04.1~lo1 Calc: threaded Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: 77fca616e0bd79e0b405fd0b3543cf8e94e15df3 CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3 Locale: en-US (en_US.UTF-8); UI: en-US Calc: threaded Created attachment 188649 [details]
les techniques page copy
> I also copied the same image from the website myself in a blank writer > document and it shows up as you would expect. Which browser did you use? Note: I can copy-paste images from other web pages correctly (see attachment). > Maybe I can ask a follow up: I attached an example of how I highlighted the > webpage image prior to CTRL+C - is that how you were selecting the image? > Like dragging your mouse over the area then just copying it? Yes, I did so. After selection, can you print the output of the lines below? $ xclip -selection clipboard -t TARGETS -o $ xclip -selection clipboard -t text/html For me, with FireFox, for the shoe fabrication page, I get: $ xclip -selection clipboard -t TARGETS -o TIMESTAMP TARGETS MULTIPLE SAVE_TARGETS text/html text/_moz_htmlcontext text/_moz_htmlinfo UTF8_STRING COMPOUND_TEXT TEXT STRING text/plain;charset=utf-8 text/plain text/x-moz-url-priv $ xclip -selection clipboard -t text/html <meta http-equiv="content-type" content="text/html; charset=utf-8"><h2>Le cousu Mocassin <a name="mocassin"></a></h2> <table class="paragraph_text" cellspacing="0"> <tbody><tr> <td><p> </p> <p><img id="iimg_360826635" alt="Le cousu Mocassin" src="https://www.chaussuredefrance.com/export/sites/default/fr/_data/_media/images/le_monde_de_la_chaussure/les_techniques_de_fabrication/cousu_mocassin_ctc.jpg_1827635306.jpg" width="300" height="304"> </p></td></tr></tbody></table> For the flower page, which works well for copy-paste, with FireFox, I get: $ xclip -selection clipboard -t text/html -o <meta http-equiv="content-type" content="text/html; charset=utf-8"><a href="https://commons.wikimedia.org/wiki/File:Phyteuma_orbiculare.JPG?uselang=fr" class="mw-file-description"><img src="https://upload.wikimedia.org/wikipedia/commons/thumb/7/77/Phyteuma_orbiculare.JPG/200px-Phyteuma_orbiculare.JPG" decoding="async" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/7/77/Phyteuma_orbiculare.JPG/300px-Phyteuma_orbiculare.JPG 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/7/77/Phyteuma_orbiculare.JPG/400px-Phyteuma_orbiculare.JPG 2x" data-file-width="1944" data-file-height="2592" width="200" height="267"></a> Created attachment 188651 [details]
4 cases of image insertion
Olivier, Sorry for the delayed response. First I was using Chrome. I do not have Chromium as a browser. I recreated the copy paste in Firefox and it worked as expected - pasting the image as a JPEG. I attached the 'Firefox Copy Paste' to show you. I entered your xclip commands and got 1 of 2 outputs as below - though I'm not familiar with xclip I am afraid. All in Olivier I think this might be beyond my ability to QA. xclip -selection clipboard -t TARGETS -o TIMESTAMP TARGETS SAVE_TARGETS MULTIPLE STRING UTF8_STRING TEXT text/html text/plain text/plain;charset=utf-8 xclip -selection clipboard -t text/html *my shell did not produce a response to this Created attachment 188799 [details]
Firefox Copy Paste
(In reply to Olivier from comment #5) > Internet source page: > https://www.chaussuredefrance.com/sites/fr/le_monde_de_la_chaussure/ > Lachaussure/les_techniques_de_fabrication.html The link didn't work anymore. I tried some archive.org snapshots, but they did not have the images. I found the same content in https://www.chaussuredefrance.com/la-chaussure but they changed the structure compared with the html seen in your comment 15. It pastes as an embedded image in my case at least. Arch Linux 64-bit, X11 Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: f5bcc34580d02f92af01963155f2d54776a5249b CPU threads: 8; OS: Linux 6.5; UI render: default; VCL: kf5 (cairo+xcb) Locale: fi-FI (fi_FI.UTF-8); UI: en-US Calc: threaded Built on 12 September 2023 |