Commit 8602ff12 by Tianqing Liu

feat: 优化水印功能

1 parent fbbeaea4
......@@ -165,7 +165,7 @@ export default {
const watermarkedBase64 = canvas.toDataURL('image/png');
// 现在,watermarkedBase64 包含了带有水印的 base64 图像数据
console.log(watermarkedBase64);
// console.log(watermarkedBase64);
resolve(watermarkedBase64);
};
image.error = function() {
......
......@@ -57,7 +57,7 @@ export default {
// 定义水印间隔和边距
// TODO: 未兼容移动端
const watermarkIntervalX = 220; // 水印之间的水平间隔
const watermarkIntervalY = 260; // 水印之间的垂直间隔
const watermarkIntervalY = 220; // 水印之间的垂直间隔
const watermarkMarginX = 50; // 水印距离左边的边距
const watermarkMarginY = 180; // 水印距离顶部的边距
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!