Skip to content

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

License

Notifications You must be signed in to change notification settings

JJWizardMP/Bash-Script-Image-to-Webp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages