Skip to content

basementstudio/scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Setup (add to package.json scripts)

"compress": "curl -s https://raw.githubusercontent.com/basementstudio/scripts/main/compress.py | python3 -",
"rename": "curl -s https://raw.githubusercontent.com/basementstudio/scripts/main/rename.py | python3 -",
"resize": "curl -s https://raw.githubusercontent.com/basementstudio/scripts/main/resize.py | python3 -"

rename.py

Clone rename the files from a source directory to a destination directory setting a rename pattern. Usefull for large image sequences. Of course, it starts from zero.

python3 rename.py [-z zero_padding_width] src_path dest_path/Output_%n.png

compress.py

This compress input images to webp. It outputs a summary at the end

python3 compress.py src_path dest_path --quality 80

image

resize.py

This resizes input images to a target output. You can either use --width & --height or --scale.

python3 resize.py src_path dest_path --scale 0.5

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published