File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -177,7 +177,7 @@ function images() {
177177// Generate PNG versions of SVG smileys.
178178// Output files are not optimized for size.
179179function convertSmileysToPng ( ) {
180- const pathToScript = 'scripts/convert_smileys_to_svg .py'
180+ const pathToScript = 'scripts/convert_smileys_to_png .py'
181181 const pathToSvgSmileys = 'assets/smileys/svg/'
182182 const pathToPngSmileys = 'dist/smileys/png'
183183 const convertToPng = run ( `python ${ pathToScript } ${ pathToSvgSmileys } ${ pathToPngSmileys } ` )
Original file line number Diff line number Diff line change 1616import cairosvg
1717
1818
19- def convert_folder_to_svg (src_folder : pathlib .Path , dst_folder : pathlib .Path ) -> int :
19+ def convert_folder_to_png (src_folder : pathlib .Path , dst_folder : pathlib .Path ) -> int :
2020 """
2121 Convert all SVGs from src_folder into PNGs and write them in dst_folder.
2222 Create dst_folder if needed.
23- Existing files in dst_fodler are overwritten.
23+ Existing files in dst_folder are overwritten.
2424 Return the number of converted files.
2525 """
2626 src_files = src_folder .rglob ("*.svg" )
@@ -53,5 +53,5 @@ def get_cli_args():
5353
5454if __name__ == "__main__" :
5555 args = get_cli_args ()
56- file_count = convert_folder_to_svg (args ["source" ], args ["destination" ])
56+ file_count = convert_folder_to_png (args ["source" ], args ["destination" ])
5757 print (f"{ __file__ } : { file_count } files converted." )
You can’t perform that action at this time.
0 commit comments