4

我观察到 Canvas.toDataUrl 在浏览器之间返回不同的值。我的 Canvas.toDataURL 方法是否有可能在所有浏览器中返回相同的字符串?(无论是使用客户端代码还是服务器代码)。

Firefox 中的空白画布,

data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMYAAAA3CAYAAABXVTXhAAAApklEQVR4nO3TMQEAIAzAsPk3DQLWH45EQZ/OAZZ5HQA/MgYEY0AwBgRjQDAGBGNAMAYEY0AwBgRjQDAGBGNAMAYEY0AwBgRjQDAGBGNAMAYEY0AwBgRjQDAGBGNAMAYEY0AwBgRjQDAGBGNAMAYEY0AwBgRjQDAGBGNAMAYEY0AwBgRjQDAGBGNAMAYEY0AwBgRjQDAGBGNAMAYEY0AwBgRjQDAGhAtrCYfA7BeW0wAAAABJRU5ErkJggg==

Chrome 中的空白画布,

data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMYAAAA3CAYAAABXVTXhAAABgElEQVR4Xu3VIRKAQAwEQfj/owFLgRi/jY5J56Y4r+c7fAQIvAROYXgRBL4CwvAqCPwICMOzICAMb4BAE/DHaE6mxgSEMXZw6zYBYTQnU2MCwhg7uHWbgDCak6kxAWGMHdy6TUAYzcnUmIAwxg5u3SYgjOZkakxAGGMHt24TEEZzMjUmIIyxg1u3CQijOZkaExDG2MGt2wSE0ZxMjQkIY+zg1m0CwmhOpsYEhDF2cOs2AWE0J1NjAsIYO7h1m4AwmpOpMQFhjB3cuk1AGM3J1JiAMMYObt0mIIzmZGpMQBhjB7duExBGczI1JiCMsYNbtwkIozmZGhMQxtjBrdsEhNGcTI0JCGPs4NZtAsJoTqbGBIQxdnDrNgFhNCdTYwLCGDu4dZuAMJqTqTEBYYwd3LpNQBjNydSYgDDGDm7dJiCM5mRqTEAYYwe3bhMQRnMyNSYgjLGDW7cJCKM5mRoTEMbYwa3bBITRnEyNCQhj7ODWbQLCaE6mxgSEMXZw6zaBG4pF21yd2aa+AAAAAElFTkSuQmCC

4

0 回答 0