diff --git a/scripts/convert_smileys_to_svg.py b/scripts/convert_smileys_to_png.py similarity index 87% rename from scripts/convert_smileys_to_svg.py rename to scripts/convert_smileys_to_png.py index c85ca177a8..668d583573 100644 --- a/scripts/convert_smileys_to_svg.py +++ b/scripts/convert_smileys_to_png.py @@ -5,11 +5,11 @@ import cairosvg -def convert_folder_to_svg(src_folder: pathlib.Path, dst_folder: pathlib.Path) -> int: +def convert_folder_to_png(src_folder: pathlib.Path, dst_folder: pathlib.Path) -> int: """ Convert all SVGs from src_folder into PNGs and write them in dst_folder. Create dst_folder if needed. - Existing files in dst_fodler are overwritten. + Existing files in dst_folder are overwritten. Return the number of converted files. """ src_files = src_folder.rglob("*.svg") @@ -42,5 +42,5 @@ def get_cli_args(): if __name__ == "__main__": args = get_cli_args() - file_count = convert_folder_to_svg(args["source"], args["destination"]) + file_count = convert_folder_to_png(args["source"], args["destination"]) print(f"{__file__}: {file_count} files converted.")