mirror of
https://github.com/Faraphel/Atlas-Install.git
synced 2025-07-04 19:58:26 +02:00
11 lines
371 B
Python
11 lines
371 B
Python
from . import *
|
|
|
|
|
|
def encode(src_file: str, format: str) -> None:
|
|
"""
|
|
Encode an .png image into a new format
|
|
:param src_file: .png image
|
|
:param format: new image format
|
|
"""
|
|
subprocess.run(["./tools/szs/wimgt", "ENCODE", src_file, "-x", format, "--overwrite"],
|
|
creationflags=CREATE_NO_WINDOW, check=True, stdout=subprocess.PIPE)
|