Improve handling of supported image formats and file extensions, Update README with more information about supported formats
This commit is contained in:
parent
8a53cc48b0
commit
efc0c1cc72
4 changed files with 31 additions and 13 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue