feat(image): add rounded-square and squircle crop tool (#602)

Adds a Rounded Crop image tool for logo, favicon, and app-icon work. It masks the framed square to a rounded rectangle (with a corner-radius control) or an iOS-style squircle, reusing circle-crop's zoom/offset framing, border ring, background fill, and output-size options. Includes translations across all 21 locales.

Closes #601
This commit is contained in:
SnapOtter
2026-07-21 16:48:48 +08:00
committed by GitHub
parent 7d37f6e6f5
commit e7ffb37e98
35 changed files with 935 additions and 6 deletions
+21
View File
@@ -698,6 +698,27 @@ const BASE_TOOLS: Tool[] = [
acceptedInputs: IMAGE_INPUTS,
executionHint: "fast",
},
{
id: "rounded-crop",
name: "Rounded Crop",
description: "Crop image to a rounded square or squircle with transparent corners",
category: "layout",
icon: "Squircle",
route: "/rounded-crop",
modality: "image",
acceptedInputs: IMAGE_INPUTS,
executionHint: "fast",
keywords: [
"rounded corners",
"rounded square",
"squircle",
"favicon",
"app icon",
"logo",
"avatar",
"corner radius",
],
},
{
id: "duotone",
name: "Duotone",