Bug 127500 - Pasting image from clipboard doesn't work (Windows Snip&Sketch)
Summary: Pasting image from clipboard doesn't work (Windows Snip&Sketch)
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: framework (show other bugs)
Version:
(earliest affected)
6.3.1.2 release
Hardware: All Windows (All)
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Paste
  Show dependency treegraph
 
Reported: 2019-09-11 16:35 UTC by David Strozzi
Modified: 2020-05-11 08:24 UTC (History)
4 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 David Strozzi 2019-09-11 16:35:29 UTC
I just installed LO 6.3.1.2 on my Windows 10 machine.  I take a screenshot using Windows' built-in "Snip&Sketch" app.  I can't paste it into LO Impress.  I *can* into powerpoint.

Pasting screenshots into Impress/PPT is essential to my workflow.  "Save to file on disk" won't work, too inconvenient.
Comment 1 V Stuart Foote 2019-09-11 17:00:47 UTC
Please identify the clipboard format(s) the "Snip & Sketch" app places on the system clipboard. A tool like NirSoft "InsideClipboard" [1] should suffice for you to provide a screen clip.

But, if normal Paste (Ctrl+V) is not working, very likely you will need to use LibreOffice's paste special (Ctrl+Shift+V) and select one of the offered image formats.

If none are compatible with what the Microsoft app is placing on the system clipboard we may have to develop a new import filter for the clipboard content.

=-ref-=
[1] https://www.nirsoft.net/utils/inside_clipboard.html
Comment 2 QA Administrators 2020-03-10 03:11:17 UTC Comment hidden (obsolete)
Comment 3 Doctor Science 2020-03-18 01:27:35 UTC
I am not David Strozzi, but I am dealing with this bug, and I have the info!

When I run Inside Clipboard on what's clipped from Snip&Sketch, I get:

Clipboard Items

Created by using InsideClipboard

Format ID 	Format Name 	Handle Type 	Size 	Index
2	CF_BITMAP	Bitmap	0	2
49397	PNG	Stream	23,994	3
49711	CanUploadToCloudClipboard	Memory	4	4
49712	CanIncludeInClipboardHistory	Memory	4	5
49715	ContentSourceUserActivity	Memory	794	1

It turns out that I *can* paste this into a blank IrfanView window, then re-copy to the clipboard & paste it into LibreOffice, no problem.

I am not capable of truly debugging at this level, but I can follow instructions!
Comment 4 Doctor Science 2020-03-18 01:31:15 UTC
Further info:

When I paste into IrfanView and then Ctrl-A Ctrl-C, Inside Clipboard sez:


Clipboard Items

Created by using InsideClipboard

Format ID 	Format Name 	Handle Type 	Size 	Index
2	CF_BITMAP	Bitmap	0	2
8	CF_DIB	Memory	570,640	1
17	CF_DIBV5	Memory	570,724	3

HTH
Comment 5 Buovjaga 2020-05-10 20:29:58 UTC
I guess NEW per confirmation. Note that you should be able to work just fine with the usual workflow: pressing PrtScn/PrintScreen button on your keyboard instead of using an app.
Comment 6 V Stuart Foote 2020-05-10 21:15:53 UTC
Windows 10 Home 64-bit en-US (1909)

Dumping sys clipboard with InsideClipboard MS 'Snip & Sketch' outputs:

Format ID - Format Name - Handle type - Size - Index

2	CF_BITMAP	                Bitmap	0	2	
49279	PNG	                        Stream	119,369	3	
49842	CanUploadToCloudClipboard	Memory	4	4	
49846	CanIncludeInClipboardHistory	Memory	4	5	
49853	ContentSourceUserActivity	Memory	794	1	

<Ctrl>+V, menu, or mouse 'Paste' into LibreOffice is empty, and Paste Special to LibreOffice only offers Bitmap which is empty on insertion.

Guess we need a filter handler to recognize the 49279 PNG clipboard format as usable, and some means to recognize that the CF_BITMAP is empty, so should not be offered?
Comment 7 Ryllen 2020-05-11 05:49:24 UTC
I want fix this bug too.
But I had found, that if select area without snip and sketch then can paste to office.

1 shift + win + s
2 select own area
3 DON’T CLICK on pop-up window 
4 paste to office



Simple PrintScreen - pasted
2                    CF_BITMAP            Bitmap               0                    1                    
8                    CF_DIB               Memory               5 242 932            2                    
17                   CF_DIBV5             Memory               5 243 016            3                    

Selection without SnipAndSketch - pasted
49380                Preferred DropEffect Memory               4                    1                    
2                    CF_BITMAP            Bitmap               0                    2                    
49732                ContentSourceUserAct Memory               822                  3                    
49452                PNG                  Stream               1 325                4                    

SnipAndSketch – no pasted
49732                ContentSourceUserAct Memory               892                  1                    
2                    CF_BITMAP            Bitmap               0                    2                    
49452                PNG                  Stream               8 439                3                    
49728                CanUploadToCloudClip Memory               4                    4                    
49729                CanIncludeInClipboar Memory               4                    5                    


Libre Office: 6.3.5.2 (x64)    Bug in writer, calc, impress
Windows 10 x64 pro (Version 1903 OS Build 18362.778)