FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
python3statement.github.io/scripts/squash-images.sh at master · isshiki/python3statement.github.io · GitHub
isshiki
python3statement.github.io
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
python3statement.github.io
/
scripts
/
squash-images.sh
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
24 lines (20 loc) · 437 Bytes
Breadcrumbs
python3statement.github.io
/
scripts
/
squash-images.sh
Copy path
File metadata and controls
executable file
·
24 lines (20 loc) · 437 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!
/usr/bin/env bash
set
-e
#
pip install pillow
if
[
!
-z
$1
]
then
python3 scripts/thumbnail-images.py --file
$1
else
python3 scripts/thumbnail-images.py
fi
#
http://optipng.sourceforge.net/
#
On Mac: brew install optipng
#
Optimization levels:
#
-o7 -zm1-9 <=> -zc1-9 -zm1-9 -zs0-3 -f0-5 (1080 trials)
if
[
!
-z
$1
]
then
pngcrush -ow -brute
$1
optipng -o7 -zm1-9
$1
else
optipng -o7 -zm1-9 assets/
*
.png
fi
Back
|
FazBrowse Home
|
New Git URL