Bug 290294

Summary: Add “Copy to Clipboard” option to context menu
Product: [Applications] gwenview Reporter: Kai Uwe Broulik <kde>
Component: generalAssignee: Gwenview Bugs <gwenview-bugs-null>
Status: RESOLVED FIXED    
Severity: wishlist CC: bizyaev, tiposchi, zweistein12
Priority: NOR    
Version: 2.8   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:

Description Kai Uwe Broulik 2012-01-01 03:12:44 UTC
Version:           2.8 (using Devel) 
OS:                Linux

There should be an option “Copy To Clipboard” in the contextmenu of the picture view. If I want to just copy a picture to clipboard to edit it further or insert it somewhere, I always need to open it in Kolourpaint, Select All and Copy it. A simple Copy to clipboard option that just copies the entire image (well, selection would be nice, yes, but this is just an image viewer and not worth the effort) to clipboard would become very handy for this.

Reproducible: Always

Steps to Reproduce:
1. Open a picture in Gwenview
2. Right click the picture


Expected Results:  
3. Choose “Copy to Clipboard” right above “Copy To” and have the entire picture in the clipboard to insert it somewhere else :)
Comment 1 Nate Graham 2017-09-11 16:17:30 UTC
*** Bug 383091 has been marked as a duplicate of this bug. ***
Comment 2 Nate Graham 2017-09-11 16:17:36 UTC
*** Bug 381898 has been marked as a duplicate of this bug. ***
Comment 3 Peter Mühlenpfordt 2018-05-21 08:42:37 UTC
Git commit b94861f27a29fe576867eee0157d5211187a16db by Peter Mühlenpfordt.
Committed on 21/05/2018 at 08:42.
Pushed by muhlenpfordt into branch 'master'.

Copy raster image and SVG content to clipboard

Summary:
The normal `Copy`/`Cut` options ({key Ctrl C}/{key Ctrl X}) copy the
url(s) of the selected file(s)/folder(s) to the clipboard.
This patch additionally copies raster image and SVG content of the
current document to the clipboard. In Browse Mode the content is
copied only if a single file is selected.

Test Plan:
# Open raster image or SVG in Gwenview
# {nav Edit > Copy} or {key Ctrl C} to copy image to clipboard
# Paste image to different applications (e.g. gimp, office writer,
  facebook chat in web browser, inkscape, etc.)
# Cut&Paste should only move the file if pasted to file manager
  applications (e.g. dolphin)

Reviewers: #gwenview, rkflx

Reviewed By: #gwenview, rkflx

Subscribers: huoni, rkflx, ngraham

Differential Revision: https://phabricator.kde.org/D12871

M  +24   -1    app/fileopscontextmanageritem.cpp

https://commits.kde.org/gwenview/b94861f27a29fe576867eee0157d5211187a16db