Removed width and height check for file split
This commit is contained in:
parent
b884487ec9
commit
1ca54ce7f7
@ -133,9 +133,6 @@
|
|||||||
// Load the image to check its dimensions
|
// Load the image to check its dimensions
|
||||||
const img = new Image();
|
const img = new Image();
|
||||||
img.onload = () => {
|
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
|
// 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?')) {
|
if (confirm('This looks like it might be a spritesheet. Would you like to split it into individual sprites?')) {
|
||||||
// Open the spritesheet splitter
|
// Open the spritesheet splitter
|
||||||
@ -144,7 +141,6 @@
|
|||||||
isSpritesheetSplitterOpen.value = true;
|
isSpritesheetSplitterOpen.value = true;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// If the user doesn't want to split or it's not large enough, process as a single sprite
|
// If the user doesn't want to split or it's not large enough, process as a single sprite
|
||||||
processImageFiles([file]);
|
processImageFiles([file]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user