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

Issue 593630 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Last visit > 30 days ago
Closed: Jun 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 2
Type: Bug



Sign in to add a comment

CanvasRenderingContext2D.drawImage() with all arguments not working as expected, dWidth and dHeight are scaling the image to half the size

Reported by pbogdan...@gmail.com, Mar 10 2016

Issue description

Example URL:
Any URL that uses the full version of the method

Steps to reproduce the problem:
1. Create a canvas element
2. Use drawImage on a 2D context to display a image on canvas
3. Be sure to set width and height on canvas and to call the method with all the 9 args

What is the expected behavior?
If the width and height of the canvas is the same as dWidth and dHeight the image should be displayed full size on canvas like on desktop browser.

What went wrong?
The portion of the image is scaled to half the size.

Does it occur on multiple sites: Yes

Is it a problem with a plugin? No 

Did this work before? Yes On a previous version of chrome, don't recall which

Does this work in other browsers? N/A 

Chrome version: 48.0.2564.95  Channel: stable
OS Version: 
Flash Version:
 
Components: -Blink Blink>Canvas
Cc: aelias@chromium.org
Status: Available (was: Unconfirmed)

Comment 3 by junov@chromium.org, Mar 17 2016

Labels: Needs-Feedback
Owner: junov@chromium.org
Status: Assigned (was: Available)
According to our automated tests this method is working fine and has not regressed recently. So you are probably using drawImage in a very specific way that it is not covered by our tests.

Could you provide a specific example that demonstrates the failure? Please either attach an html file or provide a URL of an existing web page or use jsfiddle.net to construct an example.
I'm using a similar implementation as canvid.js.
You can see the bug here on their demo example:
http://gka.github.io/canvid

The bug seems to be at their `drawFrame` function where it uses ctx.drawImage() with 9 args.

Comment 5 by junov@chromium.org, Apr 18 2016

Labels: M-52
Project Member

Comment 6 by sheriffbot@chromium.org, Jun 1 2016

Labels: -M-52 M-53 MovedFrom-52
Moving this nonessential bug to the next milestone.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Comment 7 by junov@chromium.org, Jun 17 2016

Status: WontFix (was: Assigned)
Can't repro in Chrome 51.
Closing issue.
If this problem is till occurring please update with a full reproduction case (example of a URL that has the failure, or a sample HTML file), and we will re-open.

Sign in to add a comment