From 1ca54ce7f7c25ff014572ad5fb5aa4aa65a8b3c3 Mon Sep 17 00:00:00 2001 From: Dennis Postma Date: Sun, 6 Apr 2025 03:46:52 +0200 Subject: [PATCH] Removed width and height check for file split --- src/App.vue | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/src/App.vue b/src/App.vue index 7961f01..9cb8954 100644 --- a/src/App.vue +++ b/src/App.vue @@ -133,17 +133,13 @@ // Load the image to check its dimensions const img = new Image(); img.onload = () => { - // If the image is large enough, it might be a spritesheet - // This is a simple heuristic - we can improve it later - if (img.width > 200 && img.height > 200) { - // Ask the user if they want to split the spritesheet - if (confirm('This looks like it might be a spritesheet. Would you like to split it into individual sprites?')) { - // Open the spritesheet splitter - spritesheetImageUrl.value = url; - spritesheetImageFile.value = file; - isSpritesheetSplitterOpen.value = true; - return; - } + // Ask the user if they want to split the spritesheet + if (confirm('This looks like it might be a spritesheet. Would you like to split it into individual sprites?')) { + // Open the spritesheet splitter + spritesheetImageUrl.value = url; + spritesheetImageFile.value = file; + isSpritesheetSplitterOpen.value = true; + return; } // If the user doesn't want to split or it's not large enough, process as a single sprite