fix: image

This commit is contained in:
zzc
2026-02-08 13:37:15 +08:00
parent f4d6a5fcf3
commit 920816152b

View File

@@ -641,7 +641,7 @@ const textColors = [
"#FFC0CB", "#FFC0CB",
]; ];
const selectedColor = ref("#F8DA84"); const selectedColor = ref("#F8DA84");
const signatureColor = ref("#000000"); const signatureColor = ref("#B4802C");
const fontList = [ const fontList = [
{ name: "默认", family: "PingFang SC", url: "" }, { name: "默认", family: "PingFang SC", url: "" },
@@ -1222,8 +1222,8 @@ const saveByCanvas = async (save = true) => {
height: canvas.height, height: canvas.height,
destWidth: canvas.width, destWidth: canvas.width,
destHeight: canvas.height, destHeight: canvas.height,
fileType: "png", // 使用 PNG 避免 JPG 压缩损耗 fileType: "jpg", // 使用 PNG 避免 JPG 压缩损耗
quality: 1.0, // 最高质量 quality: 0.85, // 最高质量
success: (res) => { success: (res) => {
if (save) saveImage(res.tempFilePath); if (save) saveImage(res.tempFilePath);
resolve(res.tempFilePath); resolve(res.tempFilePath);