Clipboard Image

how does this work? - Clipboard Image

how does this work?

by </Solidjeuh> » Sat Feb 16, 2019 12:11 am

Stupid question, but how does this ext work? Clipboard is right click - > Paste .. correct?
So Copy an image from your pc, and paste it into the forum message?
Because that's not working ... :D
User avatar
</Solidjeuh>
Registered User
Posts: 1788
Joined: Tue Mar 29, 2016 3:45 am
Location: Aalst (Belgium)
Name: Andy Dm

Re: how does this work?

by EA117 » Sat Feb 16, 2019 12:32 am

It's specifically when "an image" is in the clipboard. Which is distinct from "a file" being in the clipboard, even though that file might contain an image.

The most accessible example would be to open some other site in a tab of your browser, find an image on that site, right-click that image and select "Copy image" (or depending on your browser, it may be "Copy", or maybe "Copy background") and then switch back to your phpBB Reply/Post editor and select Paste. This will cause the image data that is in the clipboard to be uploaded to the phpBB server and added to your message as an attachment.

Right-clicking a file on your desktop and selecting "Copy" (like you would also do for copying that file to another folder or to another drive) doesn't put "image data" into the clipboard. It puts "description of a file and it's path" into the clipboard, which doesn't provide you with "an image you can paste", even if the content of that file happens to be an image.

If that's already everything you were expecting, maybe confirm what platform you're on, what browser, and what the source of the image in the clipboard is.


The ability of this extension to do it's work is also contingent on the Javascript implementation of the clipboard APIs in the browser. It's also contingent on whether a given platform puts "image data" into the clipboard, or allows "image data" to be pasted into a text editor.

One of the forum threads I believe identified that IE11 does not permit "Paste" actions in an edit box except for text-based clipboard data, and I believe the same for Opera on iOS. I can also vouch for Chrome on Android 7.x not actually putting "image data" into the clipboard, even when taking a screen shot of the screen.

But if you're on Windows 7+ with Firefox, Chrome or Edge, I can at least vouch for the success of those platforms, if image data is what was actually in the clipboard.
User avatar
EA117
Registered User
Posts: 2162
Joined: Wed Aug 15, 2018 3:23 am

Re: how does this work?

by </Solidjeuh> » Sat Feb 16, 2019 8:56 am

Oh ok, I thought this ext was made to copy/past images from your PC to the forum post. It works perfectly when I copy images from a website with Firefox. Thank you for explaining this.
User avatar
</Solidjeuh>
Registered User
Posts: 1788
Joined: Tue Mar 29, 2016 3:45 am
Location: Aalst (Belgium)
Name: Andy Dm

Re: how does this work?

by EA117 » Sat Feb 16, 2019 2:39 pm

</Solidjeuh> wrote:I thought this ext was made to copy/past images from your PC to the forum post.
Yeah, if you have "files" that you want to attach (whether they are images or not), the "drag and drop" method that phpBB supports is the "shortcut" for how to attach those without literally using the "Attach" button. And that method also allows you to attach multiple files "at once."

Note this clipboard extension does allow you to copy/paste images from more than "just within the browser." Any application can put image data into the clipboard. e.g. You might have an images inside of a Word document, or maybe literally working on an image in Photoshop, etc. Those applications also allow you to cut/copy the image into the clipboard, and then you would be able to paste from there into your phpBB message, too. Doing it from within the browser was just "the application I am sure you have" in order to write the example. 😉
User avatar
EA117
Registered User
Posts: 2162
Joined: Wed Aug 15, 2018 3:23 am