From e80f58116a9ecd67b2febe06778c624fd42ed1c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Gon=C3=A7alves?= Date: Mon, 18 Jan 2021 12:52:27 +0100 Subject: Restart repo from scratch --- update_images | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 update_images (limited to 'update_images') diff --git a/update_images b/update_images new file mode 100755 index 0000000..fd8f8fa --- /dev/null +++ b/update_images @@ -0,0 +1,15 @@ +#!/bin/bash +# +# Update pictures, +# recursively remove metadata and decrease file size, +# for each pictures + +IMG_DIR="static/images" +IMG_LIST=$(find ${IMG_DIR}) +IMG_MAX_SIZE="250k" + +for img in ${IMG_LIST[@]}; do + jhead -purejpg "${img}" + jpegoptim --size "${IMG_MAX_SIZE}" "${img}" +done + -- cgit v1.2.3