Skip to content

Commit 1c6e915

Browse files
committed
[Added] Added gifsicle image optimisation installation
1 parent 72ea693 commit 1c6e915

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

README.md

+11
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ A collection of scripts for setting up various items / running tasks on serverpi
2020
- [AutoMySQLBackup](#automysqlbackup)
2121
- [Imagick](#imagick)
2222
- [Disable MySQL (5.7) Strict Mode](#disable-mysql-57-strict-mode)
23+
- [Image Optimisation Libraries](#image-optimisation-libraries)
2324
- [Password Protect](#password-protect)
2425

2526
#### LEMP Stack (Nginx Only, No Apache)
@@ -42,6 +43,15 @@ If your app was written for older versions of MySQL and is not compatible with s
4243

4344
https://serverpilot.io/community/articles/how-to-disable-strict-mode-in-mysql-5-7.html
4445

46+
#### Image Optimisation Libraries
47+
Installation of the following image optimisation libraries:
48+
49+
- gifsicle
50+
- jpegoptim
51+
- optipng
52+
- pngcrush
53+
- pngquant
54+
4555
#### Password Protect
4656
Ability to add Auth Basic to apps with in serverpilot. This is setup within the nginx app config so will work with both people using nginx + apache and nginx only
4757

@@ -53,5 +63,6 @@ Ability to add Auth Basic to apps with in serverpilot. This is setup within the
5363
- [x] optipng
5464
- [x] pngcrush
5565
- [x] pngquant
66+
- [x] gisicle
5667
- [ ] MariaDB Installation
5768
- [x] Password protect apps

serverpilot-scripts.sh

+4
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,10 @@ if [ "$imgopt" = "y" ] || [ $run_all = true ]; then
190190
show_info "Installing pngcrush..."
191191
apt-get install -y pngcrush
192192

193+
# gifsicle
194+
show_info "Installing gifsicle..."
195+
apt-get install -y gifsicle
196+
193197
show_notice "Finished Installing image optimisation libraries..."
194198
fi
195199
# === /Image optimisation libraries ===

0 commit comments

Comments
 (0)