diff --git a/all_paw_care/static/img/about_me/about_me_1_lg.jpg b/all_paw_care/static/img/about_me/about_me_1_lg.jpg index 3d09eda..f790c7f 100644 Binary files a/all_paw_care/static/img/about_me/about_me_1_lg.jpg and b/all_paw_care/static/img/about_me/about_me_1_lg.jpg differ diff --git a/all_paw_care/static/img/about_me/about_me_1_md.jpg b/all_paw_care/static/img/about_me/about_me_1_md.jpg index ae9bf4a..73fce2d 100644 Binary files a/all_paw_care/static/img/about_me/about_me_1_md.jpg and b/all_paw_care/static/img/about_me/about_me_1_md.jpg differ diff --git a/all_paw_care/static/img/about_me/about_me_1_sm.jpg b/all_paw_care/static/img/about_me/about_me_1_sm.jpg index f1aaf68..e239f7b 100644 Binary files a/all_paw_care/static/img/about_me/about_me_1_sm.jpg and b/all_paw_care/static/img/about_me/about_me_1_sm.jpg differ diff --git a/all_paw_care/static/img/about_me/about_me_1_xl.jpg b/all_paw_care/static/img/about_me/about_me_1_xl.jpg index 73f91a4..6235fa6 100644 Binary files a/all_paw_care/static/img/about_me/about_me_1_xl.jpg and b/all_paw_care/static/img/about_me/about_me_1_xl.jpg differ diff --git a/all_paw_care/static/img/about_me/about_me_1_xxl.jpg b/all_paw_care/static/img/about_me/about_me_1_xxl.jpg index 3ec6128..115bde1 100644 Binary files a/all_paw_care/static/img/about_me/about_me_1_xxl.jpg and b/all_paw_care/static/img/about_me/about_me_1_xxl.jpg differ diff --git a/all_paw_care/static/img/about_me/about_me_2_lg.jpg b/all_paw_care/static/img/about_me/about_me_2_lg.jpg index 4582270..1c8e0d4 100644 Binary files a/all_paw_care/static/img/about_me/about_me_2_lg.jpg and b/all_paw_care/static/img/about_me/about_me_2_lg.jpg differ diff --git a/all_paw_care/static/img/about_me/about_me_2_md.jpg b/all_paw_care/static/img/about_me/about_me_2_md.jpg index 9818a2a..c6686a7 100644 Binary files a/all_paw_care/static/img/about_me/about_me_2_md.jpg and b/all_paw_care/static/img/about_me/about_me_2_md.jpg differ diff --git a/all_paw_care/static/img/about_me/about_me_2_sm.jpg b/all_paw_care/static/img/about_me/about_me_2_sm.jpg index f5102c8..7cabdde 100644 Binary files a/all_paw_care/static/img/about_me/about_me_2_sm.jpg and b/all_paw_care/static/img/about_me/about_me_2_sm.jpg differ diff --git a/all_paw_care/static/img/about_me/about_me_2_xl.jpg b/all_paw_care/static/img/about_me/about_me_2_xl.jpg index 8a6c842..7782ecd 100644 Binary files a/all_paw_care/static/img/about_me/about_me_2_xl.jpg and b/all_paw_care/static/img/about_me/about_me_2_xl.jpg differ diff --git a/all_paw_care/static/img/about_me/about_me_2_xxl.jpg b/all_paw_care/static/img/about_me/about_me_2_xxl.jpg index ab4b846..8abe291 100644 Binary files a/all_paw_care/static/img/about_me/about_me_2_xxl.jpg and b/all_paw_care/static/img/about_me/about_me_2_xxl.jpg differ diff --git a/all_paw_care/static/img/about_me/about_me_3_lg.jpg b/all_paw_care/static/img/about_me/about_me_3_lg.jpg index 1e624a6..2289365 100644 Binary files a/all_paw_care/static/img/about_me/about_me_3_lg.jpg and b/all_paw_care/static/img/about_me/about_me_3_lg.jpg differ diff --git a/all_paw_care/static/img/about_me/about_me_3_md.jpg b/all_paw_care/static/img/about_me/about_me_3_md.jpg index ca346b9..781e5df 100644 Binary files a/all_paw_care/static/img/about_me/about_me_3_md.jpg and b/all_paw_care/static/img/about_me/about_me_3_md.jpg differ diff --git a/all_paw_care/static/img/about_me/about_me_3_sm.jpg b/all_paw_care/static/img/about_me/about_me_3_sm.jpg index fb626aa..90e3812 100644 Binary files a/all_paw_care/static/img/about_me/about_me_3_sm.jpg and b/all_paw_care/static/img/about_me/about_me_3_sm.jpg differ diff --git a/all_paw_care/static/img/about_me/about_me_3_xl.jpg b/all_paw_care/static/img/about_me/about_me_3_xl.jpg index da61a3e..2d49f5e 100644 Binary files a/all_paw_care/static/img/about_me/about_me_3_xl.jpg and b/all_paw_care/static/img/about_me/about_me_3_xl.jpg differ diff --git a/all_paw_care/static/img/about_me/about_me_3_xxl.jpg b/all_paw_care/static/img/about_me/about_me_3_xxl.jpg index bdbfc8a..fa62269 100644 Binary files a/all_paw_care/static/img/about_me/about_me_3_xxl.jpg and b/all_paw_care/static/img/about_me/about_me_3_xxl.jpg differ diff --git a/all_paw_care/templates/pages/index.html b/all_paw_care/templates/pages/index.html index 9d2236c..5160f57 100644 --- a/all_paw_care/templates/pages/index.html +++ b/all_paw_care/templates/pages/index.html @@ -11,13 +11,13 @@ {% for row in page.get_content() %}
-
+

{{ page.get_content()[row]['content'] }}

-
+
{% for img in page.get_content()[row]['images'] %} {% if not loop.last %} diff --git a/process_images.sh b/process_images.sh new file mode 100755 index 0000000..6381ac0 --- /dev/null +++ b/process_images.sh @@ -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 +