Bug 290294 - Add “Copy to Clipboard” option to context menu
Summary: Add “Copy to Clipboard” option to context menu
Status: RESOLVED FIXED
Alias: None
Product: gwenview
Classification: Applications
Component: general (show other bugs)
Version: 2.8
Platform: Ubuntu Linux
: NOR wishlist
Target Milestone: ---
Assignee: Gwenview Bugs
URL:
Keywords:
: 381898 383091 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-01-01 03:12 UTC by Kai Uwe Broulik
Modified: 2018-05-21 08:42 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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