Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/basementstudio/scripts


https://github.com/basementstudio/scripts

Last synced: 10 days ago
JSON representation

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```

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```