diff options
| author | Eugene Triguba <hello@eugenetriguba.com> | 2025-08-17 11:10:51 -0400 |
|---|---|---|
| committer | Eugene Triguba <hello@eugenetriguba.com> | 2025-08-17 11:10:51 -0400 |
| commit | 93fd5fc4b197c488660e34627e324f8507d0a2cb (patch) | |
| tree | a33eacae3339f7b89b897e9804334a0c6158dbb7 | |
| parent | Update optimize-image script and convert overview to webp (diff) | |
| download | dotfiles-93fd5fc4b197c488660e34627e324f8507d0a2cb.zip | |
Fix quality flag usage
| -rwxr-xr-x | executables/bin/optimize-image | 2 |
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" } |