+ {/* Dimensions */}
+
+
+ {/* Square mode */}
+
+
+ {/* Face protection */}
+
+
+ {/* Blur radius */}
+
+
+
+ {blurRadius}
+
+
setBlurRadius(Number(e.target.value))}
+ className="w-full mt-1 h-1.5 rounded-full appearance-none bg-muted accent-primary"
+ />
+
+
+ {/* Sobel threshold */}
+
+
+
+ {sobelThreshold}
+
+
setSobelThreshold(Number(e.target.value))}
+ className="w-full mt-1 h-1.5 rounded-full appearance-none bg-muted accent-primary"
+ />
+
+
+ );
+}
+
+export function ContentAwareResizeSettings() {
+ const { files } = useFileStore();
+ const { processFiles, processAllFiles, processing, error, downloadUrl, progress } =
+ useToolProcessor("content-aware-resize");
+ const [settings, setSettings] = useState