Skip to content

Y flip problem that may occur when acquiring safari canvas images

Notifications You must be signed in to change notification settings

linyuuki/solve-safari-canvas-flip-Y

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

solve-safari-canvas-flip-Y

Y flip problem that may occur when acquiring safari canvas images

When using toDataURL() to copy an image from the canvas of pixi.js, the y flip phenomenon will appear on the safari browser. However, everything works fine on Google Chrome on PC.

issues

I noticed jpweeks mentioned keyword, but no solution is given.

When using pixi.js, specify the canvas and context. Set premultipliedAlpha to True to solve this problem.

When using safari to view this index.html, everything is as you wish.

use safari to check this demo

Hope it can help you.

About

Y flip problem that may occur when acquiring safari canvas images

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages