Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/onadrog/bash-webp-converter
A simple bash script to convert all images files in a directory into webp file
https://github.com/onadrog/bash-webp-converter
Last synced: 4 days ago
JSON representation
A simple bash script to convert all images files in a directory into webp file
- Host: GitHub
- URL: https://github.com/onadrog/bash-webp-converter
- Owner: onadrog
- License: mit
- Created: 2021-03-27T11:37:32.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-01-28T17:02:20.000Z (10 months ago)
- Last Synced: 2024-01-28T18:25:51.704Z (10 months ago)
- Language: Shell
- Homepage:
- Size: 4.88 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: License
Awesome Lists containing this project
README
# bash-webp-converter
A simple bash script to convert all images files with one command in a directory into webp file.
(Work on linux)
## Requirement
- [Webp](https://developers.google.com/speed/webp/) converter already installed.
## Usage
### Simple way:
Past the script in the target directory and in a terminal launch:
```
$ ./webpC
```### Other way:
Paste the script in the root directory, add alias to bashrc.
Open bashrc file in a terminal, or with a file editor:
```
$ sudoedit ~/.bashrc
```At the end of the file add the alias:
```
$ alias webpC=~/webpC
```Save and refresh bashrc file:
```
$ source ~/.bashrc
```#### Alternative one command:
```
echo "alias webpC=~/webpC" >> ~/.bashrc && source ~/.bashrc
```Now you can launch `webpC` command from every directory you want to convert images.