Bug 112972 - EDITING Cannot Paste image from Windows 10 Photos viewer
Summary: EDITING Cannot Paste image from Windows 10 Photos viewer
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: filters and storage (show other bugs)
Version:
(earliest affected)
5.4.1.2 release
Hardware: All Windows (All)
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Paste
  Show dependency treegraph
 
Reported: 2017-10-07 10:04 UTC by Emil Tanev
Modified: 2022-03-01 12:21 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
NirSoft InsideClipboard view of an image copy from Windows 10 MS Photos viewer (14.85 KB, image/png)
2017-10-07 16:00 UTC, V Stuart Foote
Details
paste special in Calc of clipboard from MS Photos (4.03 KB, image/png)
2017-10-07 16:17 UTC, V Stuart Foote
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Emil Tanev 2017-10-07 10:04:15 UTC
Open an image in Windows 10 photo viewer
Right-click and Copy
Paste it in Calc

Issue: Not possible to. It is possible to paste the image in MS Excel.

Version: 5.4.1.2 (x64)
Build ID: ea7cb86e6eeb2bf3a5af73a8f7777ac570321527
CPU threads: 8; OS: Windows 6.19; UI render: default; 
Locale: ja-JP (ja_JP); Calc: group
Comment 1 V Stuart Foote 2017-10-07 15:57:34 UTC
Confirming on Windows 10 Home 64-bit en-US with
Version: 5.4.2.2 (x64)
Build ID: 22b09f6418e8c2d508a9eaf86b2399209b0990f4
CPU threads: 4; OS: Windows 6.19; UI render: default; 
Locale: en-US (en_US); Calc: group

The Windows 10 Photo Viewer app outputs odd data types to the Windows clipboard.

Its Bitmap format (CF_BITMAP) is the only Clipboard format (CF) that LibreOffice currently recognizes, and seems because its Bitmap format is missing the actual content of the bitmap (CF_DIB) it errors on special paste.

Same images opened in Windows 10 MS Paint, or IrfanView provide useful CF (bitmap, meta, or even Paints native).

So this require new development to identify the Photos application as an image source, and maybe to parse its format (CF_HDOP).
Comment 2 V Stuart Foote 2017-10-07 16:00:12 UTC
Created attachment 136832 [details]
NirSoft InsideClipboard view of an image copy from Windows 10 MS Photos viewer
Comment 3 V Stuart Foote 2017-10-07 16:17:19 UTC
Created attachment 136833 [details]
paste special in Calc of clipboard from MS Photos

STR for this are simple.

1. Open an image with Windows Photos app

2. use its menu copy to load to Windows clipboard

3. in an open LibreOffice Calc document with cursor focus in a cell

4. <Ctrl><Shift>+V for Paste special

5. the Paste Special dialog will open, with an "Unknown source" and just the a Bitmap selection

6. OK -> error dialog

In Writer or Draw/Impres an paste special insert shows same selection dialog--but no Unable to Paste error message like in Calc.
Comment 4 Armin Le Grand 2017-10-18 07:30:35 UTC
Sorry, no Win10 here
Comment 5 Roman Kuznetsov 2022-03-01 12:21:06 UTC
Still repro in

Version: 7.4.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: aafd4c8431aa511511375ff39f87a7f8bde726e0
CPU threads: 8; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win
Locale: ru-RU (ru_RU); UI: en-US
Calc: threaded