Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/basementstudio/scripts
https://github.com/basementstudio/scripts
Last synced: 10 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/basementstudio/scripts
- Owner: basementstudio
- Created: 2024-05-25T19:20:05.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-05-28T21:43:50.000Z (7 months ago)
- Last Synced: 2024-11-06T08:09:13.456Z (about 2 months ago)
- Language: Python
- Size: 2.66 MB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Setup (add to `package.json` scripts)
```json
"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```
## 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```