WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
255208
CanvasRenderingContext2D drawImage doesn't work correctly with transform when copying from self
https://bugs.webkit.org/show_bug.cgi?id=255208
Summary
CanvasRenderingContext2D drawImage doesn't work correctly with transform when...
Gregg Tavares
Reported
2023-04-09 16:55:30 PDT
Created
attachment 465824
[details]
repo of canvas drawImage issue Here's an example where a canvas is 400x200 It sets the scale to 2x2 eg: ctx.scale(2,2) It then copies the canvas to itself with ctx.drawImage(ctx.canvas 2, 0, 398, 200, // these values are in source pixels (ie, 400x200) 0, 0, 199, 100); // these values are in transformed pixels (ie, 200x100) this works in Firefox and Chrome but fails in Safari
https://jsgist.org/?src=fedaf98f88bb57622af24481944bbefc
Attached a stand alone repo
Attachments
repo of canvas drawImage issue
(759 bytes, text/html)
2023-04-09 16:55 PDT
,
Gregg Tavares
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2023-04-10 12:13:05 PDT
<
rdar://problem/107844963
>
Said Abou-Hallawa
Comment 2
2023-04-10 12:29:12 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/12580
EWS
Comment 3
2023-04-11 15:01:47 PDT
Committed
262841@main
(aa025e46a961): <
https://commits.webkit.org/262841@main
> Reviewed commits have been landed. Closing PR #12580 and removing active labels.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug