added image scaling script, updated static/img directory using scaling script, fixed 'About me' page responsive issue

This commit is contained in:
Andrew Bryant 2023-09-11 14:25:29 -04:00
parent b6f7f7a2b7
commit be2f212fd1
17 changed files with 19 additions and 2 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 142 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 86 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.7 KiB

After

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 33 KiB

After

Width:  |  Height:  |  Size: 204 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 55 KiB

After

Width:  |  Height:  |  Size: 275 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 135 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 85 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.6 KiB

After

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 32 KiB

After

Width:  |  Height:  |  Size: 191 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 54 KiB

After

Width:  |  Height:  |  Size: 254 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 182 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 111 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.9 KiB

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 38 KiB

After

Width:  |  Height:  |  Size: 260 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 67 KiB

After

Width:  |  Height:  |  Size: 348 KiB

View File

@ -11,13 +11,13 @@
{% for row in page.get_content() %}
<div class="row pb-3">
<div class="col-8 text-center {{ loop.cycle('order-first','order-last') }}">
<div class="col-sm-8 text-center {{ loop.cycle('order-first','order-last') }}">
<p class="text-secondary lead">
{{ page.get_content()[row]['content'] }}
</p>
</div>
<div class="col-4 {{ loop.cycle('order-last','order-first') }}">
<div class="col-sm-4 {{ loop.cycle('order-last','order-first') }}">
<picture>
{% for img in page.get_content()[row]['images'] %}
{% if not loop.last %}

17
process_images.sh Executable file
View File

@ -0,0 +1,17 @@
#!/usr/bin/env bash
IMG_ORIGINALS="img_original"
IMG_PUBLIC="all_paw_care/static/img"
IMG_SIZES_NAME=("sm" "md" "lg" "xl" "xxl")
IMG_SIZES=("576" "768" "992" "1200" "1400")
for img in $(find $IMG_ORIGINALS -type f)
do
for ((i=0;i<${#IMG_SIZES_NAME[@]};i++))
do
new_img_path=$(echo "$img" | sed -e "s,img_original\(.*\),$IMG_PUBLIC\1,g" \
-e "s,\.,_${IMG_SIZES_NAME[i]}\.,g")
magick "$img" -filter spline -resize ${IMG_SIZES[i]} "$new_img_path"
done
done