修复分辨率

This commit is contained in:
2026-07-03 10:13:48 +08:00
parent dbd2d1b79a
commit 1f205fc096
3 changed files with 7 additions and 7 deletions
+3 -3
View File
@@ -6,9 +6,9 @@ import SelectMenu from './SelectMenu.vue'
const emit = defineEmits(['close', 'saved'])
// 14 ratios — the union of what our models actually support; kept in sync with
// the backend guessRatio() and the docs 对照表.
const RATIO_OPTS = ['1:1', '5:4', '4:3', '3:2', '16:9', '2:1', '21:9', '3:1', '4:5', '3:4', '2:3', '9:16', '9:21', '1:3']
// 13 ratios — the union of what our models actually support; kept in sync with
// the backend guessRatio() and the docs 对照表. 9:21 removed (no image provider accepts it).
const RATIO_OPTS = ['1:1', '5:4', '4:3', '3:2', '16:9', '2:1', '21:9', '3:1', '4:5', '3:4', '2:3', '9:16', '1:3']
const IMG_RES = ['1K', '2K', '4K']
const VID_RES = ['720p', '1080p', '2K', '4K']
const ALL_RES = ['1K', '2K', '4K', '720p', '1080p']