New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 672637 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: Jan 2017
Cc:
Components:
EstimatedDays: ----
NextAction: 2017-01-30
OS: Windows
Pri: 2
Type: Bug



Sign in to add a comment

Canvas image does not copy

Reported by arthur20...@gmail.com, Dec 8 2016

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.18 Safari/537.36

Example URL:
https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API/Tutorial/Drawing_text

Steps to reproduce the problem:
1. Open the page.
2. Find a canvas example.
3. Right click and try to copy.
4. Try to paste the image in some rich text editor elsewhere.

What is the expected behavior?
The copied image should be pasted.

What went wrong?
The clipboard does not seem modified by the "copy as image" action.

Does it occur on multiple sites: Yes

Is it a problem with a plugin? N/A 

Did this work before? N/A 

Does this work in other browsers? N/A

Chrome version: 56.0.2924.18  Channel: dev
OS Version: 10.0
Flash Version: Shockwave Flash 24.0 r0

Also happens with https://mattya.github.io/chainer-DCGAN/.
Related to #459822?
 
Labels: M-56
Components: -Blink Blink>Canvas Blink>DataTransfer

Comment 3 by junov@chromium.org, Dec 9 2016

I can't reproduce this. I tried it on Linux and Windows.  I was able to paste the canvas image to an e-mail body in gmail.

Comment 4 by jsb...@chromium.org, Dec 13 2016

Labels: Needs-Feedback
Can you indicate some "rich text editor" where this is not working?

Comment 5 by jsb...@chromium.org, Dec 13 2016

NextAction: 2016-12-19
Windows WordPad and web.telegram.org paste-to-send-image.

FYI My Windows 10 build is 14986, an insider preview build. MS break things in such builds, so probably Chrome is not to blame for this issue.
Cc: krajshree@chromium.org
Able to reproduce the issue on Windows 10 using chrome reported version #56.0.2924.18 and latest canary #57.0.2949.0.

Attached a screen cast for reference.

Following are the steps followed to reproduce the issue.
------------
1. Opened the URL: https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API/Tutorial/Drawing_text.
2. Right clicked and tried to copy a sample canvas image.
3. Pasted the image in windows word pad.
4. Observed that the image got pasted as a black rectangular box.

arthur200126@ - Could you please verify the screen cast and please let us know if it is the issue.
Also please try reproducing this issue in different browsers and please let us know the behaviors in different browsers. This will help us in knowing if it is chrome specific or not.

Thanks...!!
672637.mp4
792 KB View Download
@krajshree Hmm, it does not look like the same issue. My clipboard starts with some text in it (I used the MDN url to start with), and every time I paste I always get the text. That's what I meant by saying clipboard does not seem changed.

(You don't have to start with text -- the crbug tracker logo image does it too.)

Comment 9 by junov@chromium.org, Dec 13 2016

@#7: The black rectangular box may be normal behavior depending on the application you are pasting to.  This is because the canvases on the page https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API/Tutorial/Drawing_text
are drawing black text over a cleared (transparent) canvas when you paste a semi-transparent image to an application that has poor support for transparency, the image's RGB values will get copied instead of alpha-blended, so the transparent pixels show up as black.  That is why the canvas appears as all plack in WordPad or MS-Paint.  That is not a bug with Chrome.  Try copying a canvas that is more colorful, and you'll see that it is Okay.
I can't repro the original problem reported on win7.

But re #7 and #9, looks like firefox puts transparent images on the clipboard too. If you're authoring the svg, you can fill the background with a color prior to drawing on top of that solid background.
Cc: anan...@chromium.org
Drat, I forgot to try to repro this on my win10 system at home.

@anantha, can you help find someone to try to repro this on win10? The OP says copying an SVG image doesn't put anything on the clipboard, but the OP was using an insider preview build of win10. If this doesn't repro on released versions of win10, I think we can close it out.
Cc: michaeln@chromium.org
Unable to reproduce the issue on Windows 10 using chrome reported version #56.0.2924.18 and latest canary #57.0.2958.3.

Attached a screen cast for reference.

Following are the steps followed to reproduce the issue.
------------
1. Opened the URL: https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API/Tutorial/Drawing_text.
2. Right clicked and tried to copy a sample canvas image.
3. Pasted the image in windows word pad.
4. Observed that the image got pasted as expected.

arthur200126@ - Could you please verify the screen cast and please let us know if it is the expected behavior.

michaeln@ - Could you please verify the screen cast and please let us know if this issue can be closed.

Thanks...!!
672637.mp4
2.2 MB View Download
Project Member

Comment 13 by sheriffbot@chromium.org, Dec 29 2016

Labels: -Needs-Feedback Needs-Review
Owner: jsb...@chromium.org
Thank you for providing more feedback. Adding requester "jsbell@chromium.org" for another review and adding "Needs-Review" label for tracking.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
jsbell@ - Friendly Ping...!!

Could you please check this issue and provide any update on the same.

Thanks...!!
Labels: -Needs-Review Needs-Feedback
NextAction: 2017-01-30
Owner: ----
Just need confirmation of test results from Comment #12.
Cc: pwnall@chromium.org
Status: WontFix (was: Unconfirmed)
Tentatively closing, but let's re-open if the OP provides additional details.

Sign in to add a comment