You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you are on retina screen then you must scroll all the way to the bottom right in jsfiddle render. The image is very large on retina. Not so big on 1:1 pixel ratio screen.
Screen shot of jsfiddle:
On top is canvas, on bottom is img. Notice shadow in img.
Steps to reproduce
Create textbox with shadow
Take toDataUrl of textbox with multiplier of 5
Insert data url into image
Expected Behavior
Image's shadow matches canvas shadow
Actual Behavior
Image shadow appears less offset and less blurred than canvas original
Screen shot of canvas:
Screen shot of image, after multiplier applied to data URL:
The text was updated successfully, but these errors were encountered:
Problem is here.
html canvas never scale the shadows. We scale the shadow keeping track of the multipliers from canvasZoom and objectZoom and retinaZoom.
When we set a direct ctx.scale() like that we fail at recovering it later when is time to render the shadows.
Version
1.6.1
Test Case
http://jsfiddle.net/yfzv4x87/
If you are on retina screen then you must scroll all the way to the bottom right in jsfiddle render. The image is very large on retina. Not so big on 1:1 pixel ratio screen.
Screen shot of jsfiddle:
On top is canvas, on bottom is img. Notice shadow in img.
Steps to reproduce
Expected Behavior
Image's shadow matches canvas shadow
Actual Behavior
Image shadow appears less offset and less blurred than canvas original
Screen shot of canvas:
Screen shot of image, after multiplier applied to data URL:
The text was updated successfully, but these errors were encountered: