fix: 提高导出图片清晰度为4k高清图片

This commit is contained in:
Zhukj
2026-04-20 17:19:07 +08:00
parent f52e9f2618
commit 16f3e28c46

View File

@@ -1958,9 +1958,9 @@
const ctx = canvas.getContext('2d');
const container = imageContainer;
// 固定高清分辨率 1080×1920
const TARGET_WIDTH = 1080;
const TARGET_HEIGHT = 1920;
// 4K 超高清分辨率 2160×3840
const TARGET_WIDTH = 2160;
const TARGET_HEIGHT = 3840;
// 显示尺寸(用于计算缩放比例)
const displayWidth = container.clientWidth;