Improve handling of supported image formats and file extensions, Update README with more information about supported formats

This commit is contained in:
ChaoticByte 2025-10-11 08:07:43 +02:00
parent 8a53cc48b0
commit efc0c1cc72
Signed by: ChaoticByte
SSH key fingerprint: SHA256:bHr1NPU+JZFLUbsTl2/mfa6U+6dcM7VjKohzXnshfFY
4 changed files with 31 additions and 13 deletions

View file

@ -1,9 +1,5 @@
extends Node
const BATCH_MODE_SUPPORTED_EXTS = [
".bmp", ".dds", ".exr", ".hdr", ".jpeg", ".jpg", ".ktx", ".png", ".svg", ".webp"
]
@onready var app_name = ProjectSettings.get_setting("application/config/name")
func show_help():
@ -75,7 +71,7 @@ func cli(args: PackedStringArray):
var out_dir_path: String = kwargs["--output"].rstrip("/")
for f in load_image_dir.get_files():
var supported = false
for e in BATCH_MODE_SUPPORTED_EXTS:
for e in Filesystem.SUPPORTED_INPUT_EXT:
if f.ends_with(e):
supported = true
break