Roundup Tracker - Issues

Issue 2550824

classification
Allow include image from clipboard to comment
Type: rfe Severity: minor
Components: Interface Versions:
process
Status: closed fixed
:
: : ThomasAH, ber, jan.tylich, rouilj
Priority: :

Created on 2013-11-27 08:08 by jan.tylich, last changed 2022-12-02 06:25 by ThomasAH.

Messages
msg4955 Author: [hidden] (jan.tylich) Date: 2013-11-27 08:08
I'd like include image from system clipboard to comment field. I don't 
want open some image editor, create new image, paste clipboard, save image 
and after that upload it as file.

If it is possible do it at least as import image from clipboard to 
uploaded file with some generated name it will be also great.
msg4957 Author: [hidden] (jan.tylich) Date: 2013-11-27 08:35
Yes, I also find this discussion:

http://stackoverflow.com/questions/6333814/how-does-the-paste-image-from-
clipboard-functionality-work-in-gmail-and-google-c

There is some suggestions in javascript this sound for me promising.
Q:"With HTML 5 features(File Api and the related) - accessing clipboard 
image data is now possible with plain javascript."

But I have no mutch expirience with JS.
msg4958 Author: [hidden] (ber) Date: 2013-11-28 08:45
Hi Jan
msg4959 Author: [hidden] (ber) Date: 2013-11-28 08:56
(Sorry for the previous message, it was shortned).
Just wanted to say thanks for the suggestion.
msg4960 Author: [hidden] (rouilj) Date: 2013-12-01 05:05
In message
<1385539711.89.0.573172912178.issue2550824@psf.upfronthosting.co.za>
 <1385539711.89.0.573172912178.issue2550824@psf.upfronthosting.co.za>,
Jan Tylich writes:
>If it is possible do it at least as import image from clipboard to 
>uploaded file with some generated name it will be also great.

Maybe this will give somebody an idea. 

This works only for chrome and uses jquery or angularjs
frameworks. Also it does a direct upload to a url as opposed to
posting an entire form from roundup.

https://github.com/Rovak/InlineAttachment

From my reading, firefox may have the underlying support needed to
conde something. Earlier I.E. versions may require flash, active X,
java applet to do this sort of thing.

Also:

  http://joelb.me/blog/2011/code-snippet-accessing-clipboard-images-with-javascript/

has some idea that may be useful as well. It tkes the data as a base64
encoded string and pushes it into the form. So we would need something
to catch the data in roundup and turn it into a real attachment.

Also:

  http://stackoverflow.com/questions/15253468/get-pasted-image-from-clipboard-firefox

  http://stackoverflow.com/questions/2176861/javascript-get-clipboard-data-on-paste-event-cross-browser
msg7683 Author: [hidden] (rouilj) Date: 2022-11-25 05:00
https://wiki.roundup-tracker.org/FileUploadViaDragDropAndPaste

outlines what is used on issues.roundup-tracker.org to do drag/drop or paste from clipboard.
History
Date User Action Args
2022-12-02 06:25:16ThomasAHsetmessages: - msg4956
2022-11-25 05:00:13rouiljsetstatus: new -> closed
resolution: fixed
messages: + msg7683
2016-07-09 21:03:01rouiljsettype: behavior -> rfe
2013-12-01 05:05:11rouiljsetnosy: + rouilj
messages: + msg4960
2013-11-28 08:56:36bersetmessages: + msg4959
2013-11-28 08:45:37bersetnosy: + ber
messages: + msg4958
2013-11-27 08:35:39jan.tylichsetmessages: + msg4957
2013-11-27 08:22:57ThomasAHsetnosy: + ThomasAH
messages: + msg4956
2013-11-27 08:08:31jan.tylichcreate