import { tileSizeAtom } from "@/atoms/userSettingsAtom"; import { useAtom } from "jotai"; import React from "react"; export function TileSizeInput() { const [tileSize, setTileSize] = useAtom(tileSizeAtom); return (

CUSTOM TILE SIZE


Use a custom tile size for segmenting the image. This can help process images faster by reducing the number of tiles generated.

{ if (e.currentTarget.value === "") { setTileSize(null); localStorage.removeItem("customWidth"); return; } setTileSize(parseInt(e.currentTarget.value)); }} placeholder="0 = Auto" className="input input-primary [appearance:textfield] [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none" />
); }