https://github.com/jjwizardmp/bash-script-image-to-webp
A Bash Script that allows us download, transform and load all images from a CDN
https://github.com/jjwizardmp/bash-script-image-to-webp
bash bash-script cwebp linux-shell wget
Last synced: 30 days ago
JSON representation
A Bash Script that allows us download, transform and load all images from a CDN
- Host: GitHub
- URL: https://github.com/jjwizardmp/bash-script-image-to-webp
- Owner: JJWizardMP
- License: gpl-2.0
- Created: 2023-02-01T05:54:22.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-02-01T05:59:25.000Z (over 3 years ago)
- Last Synced: 2025-09-10T14:45:11.245Z (9 months ago)
- Topics: bash, bash-script, cwebp, linux-shell, wget
- Language: Shell
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Image To Webp
[//]: 

## Introduction
Create a bash script for download all (.png|.jpg) images from a CDN, transform to (.webp) and Load in the same CDN and teh correct directory
- s3cmd: S3cmd is a free command line tool and client for uploading, retrieving and managing data in Amazon S3 and other cloud storage service providers that use the S3 protocol
## Requeriments
- Write a bash script that allows download all (.png|.jpg) images from a CDN, transform to (.webp) and Load in the same CDN and teh correct directory
## Technologies
#### Command line
| [s3cmd](https://s3tools.org/s3cmd) |
| :----------------------------------: |
### Image to Webp Script:
This script download, transform and load to space CDN
We have to assign execute permissions to be able to execute it correctly by Cron, otherwise it will not have execute permissions (Do not forget config your .env and add your database credentials):
```sh
chmod ugo+x script.sh
```
Run the main script.
```sh
./script.sh
```
## Contributors
This project was written by:
- Programmer :
- [Joan de Jesús Méndez Pool](https://github.com/JJWizardMP)