added image scaling script, updated static/img directory using scaling script, fixed 'About me' page responsive issue
|
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 142 KiB |
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 86 KiB |
|
Before Width: | Height: | Size: 7.7 KiB After Width: | Height: | Size: 50 KiB |
|
Before Width: | Height: | Size: 33 KiB After Width: | Height: | Size: 204 KiB |
|
Before Width: | Height: | Size: 55 KiB After Width: | Height: | Size: 275 KiB |
|
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 135 KiB |
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 85 KiB |
|
Before Width: | Height: | Size: 7.6 KiB After Width: | Height: | Size: 51 KiB |
|
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 191 KiB |
|
Before Width: | Height: | Size: 54 KiB After Width: | Height: | Size: 254 KiB |
|
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 182 KiB |
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 111 KiB |
|
Before Width: | Height: | Size: 7.9 KiB After Width: | Height: | Size: 64 KiB |
|
Before Width: | Height: | Size: 38 KiB After Width: | Height: | Size: 260 KiB |
|
Before Width: | Height: | Size: 67 KiB After Width: | Height: | Size: 348 KiB |
@ -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
@ -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
|
||||
|
||||