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