aboutsummaryrefslogtreecommitdiffstats
path: root/executables
diff options
context:
space:
mode:
authorEugene Triguba <hello@eugenetriguba.com>2025-08-17 11:10:51 -0400
committerEugene Triguba <hello@eugenetriguba.com>2025-08-17 11:10:51 -0400
commit93fd5fc4b197c488660e34627e324f8507d0a2cb (patch)
treea33eacae3339f7b89b897e9804334a0c6158dbb7 /executables
parentUpdate optimize-image script and convert overview to webp (diff)
downloaddotfiles-93fd5fc4b197c488660e34627e324f8507d0a2cb.zip
Fix quality flag usage
Diffstat (limited to 'executables')
-rwxr-xr-xexecutables/bin/optimize-image2
1 files changed, 1 insertions, 1 deletions
diff --git a/executables/bin/optimize-image b/executables/bin/optimize-image
index 0f67408..075684b 100755
--- a/executables/bin/optimize-image
+++ b/executables/bin/optimize-image
@@ -10,7 +10,7 @@ main() {
original_size=$(get_file_size "$source_img_path")
echo "Optimizing: $source_img_path -> $result_img_path (quality: $quality%)"
- magick "$source_img_path" -strip -quality 85% "$result_img_path"
+ magick "$source_img_path" -strip -quality "${quality}%" "$result_img_path"
new_size=$(get_file_size "$result_img_path")
echo "File size: $original_size -> $new_size"
}