Skip to content

Commit

Permalink
don't degrade webp images quality
Browse files Browse the repository at this point in the history
  • Loading branch information
paskal committed Aug 10, 2024
1 parent cd2c6a8 commit fc282c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/optimise-images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ optimise_jpeg() {
optimise_webp() {
local file="$1"
local tmpfile="${file}.tmp.webp"
if nice -n 10 ionice -c2 -n7 cwebp -q 80 "$file" -o "$tmpfile"; then
if nice -n 10 ionice -c2 -n7 cwebp -q 100 "$file" -o "$tmpfile"; then
mv "$tmpfile" "$file"
touch -r "$file" "$file.optimised" # Set .optimised file's modification time to the original file's time
chmod 600 "$file.optimised" # Restrict permissions to owner only
Expand Down

0 comments on commit fc282c9

Please sign in to comment.