diff --git a/src/components/image-converter.tsx b/src/components/image-converter.tsx index 3a46f34..d1a662f 100644 --- a/src/components/image-converter.tsx +++ b/src/components/image-converter.tsx @@ -17,7 +17,7 @@ import { SelectTrigger, SelectValue, } from "@/components/ui/select"; -import { Upload, Download, X, Trash2, Check } from "lucide-react"; +import { Upload, Download, X, Trash2, Check, ArrowRightLeft } from "lucide-react"; import { toast } from "sonner"; import { cn } from "@/lib/utils"; import { Switch } from "@/components/ui/switch"; @@ -333,6 +333,11 @@ export function ImageConverter() { setAspectRatio("custom"); }; + const handleSwapDimensions = () => { + setWidth(height); + setHeight(width); + }; + const hasImages = images.length > 0; return ( @@ -365,12 +370,15 @@ export function ImageConverter() { -
-
+
+
-
+ +