feat(resize): add aspect-ratio proportion presets (#530)

Add a proportion chip row (Free, Original, 1:1, 4:3, 3:2, 16:9, 3:4, 9:16) to the Resize tool's Custom tab. Picking a ratio locks width and height so editing one recomputes the other, and prefills the largest box of that ratio that fits the source so it never upscales. Free stays the default, preserving existing behavior. Replaces the previously non-functional lock-aspect button. Frontend only, no backend or schema change; adds strings to all 21 locales.
This commit is contained in:
SnapOtter
2026-07-16 16:12:08 +08:00
committed by GitHub
parent 0e608e1524
commit d88999e7a9
25 changed files with 317 additions and 23 deletions
+3
View File
@@ -1200,6 +1200,9 @@ export const ru: TranslationKeys = {
scale: "Масштаб",
presets: "Шаблоны",
contentAware: "Контентно-зависимый",
aspectRatio: "Соотношение сторон",
ratioFree: "Свободно",
ratioOriginal: "Исходный",
widthPx: "Ширина (px)",
heightPx: "Высота (px)",
fitMode: "Режим вписывания",