/Bash-Script-Image-to-Webp

A Bash Script that allows us download, transform and load all images from a CDN

Primary LanguageShellGNU General Public License v2.0GPL-2.0

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

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):

chmod ugo+x script.sh 

Run the main script.

./script.sh

Contributors

This project was written by: