mirror of
https://github.com/Lapikud/lapikud.github.io.git
synced 2026-03-21 12:37:49 +00:00
Mentors view, history view
* brought over mentors form data and images * add contact information to mentors * add image conversion scripts * optimised current images
This commit is contained in:
11
assets/mentors-images/convert-mentors-images.sh
Normal file
11
assets/mentors-images/convert-mentors-images.sh
Normal file
@@ -0,0 +1,11 @@
|
||||
mkdir -p optimised
|
||||
for file in original/*; do
|
||||
echo $file
|
||||
base_name=$(basename $file)
|
||||
if [[ $base_name = *"airiin"* ]]; then
|
||||
gravity=north
|
||||
else
|
||||
gravity=center
|
||||
fi
|
||||
convert ${file} -resize "300x300^>" -gravity $gravity -extent 300x300 optimised/${base_name%}
|
||||
done
|
||||
Reference in New Issue
Block a user