Reduce quality in image variant creation

In order to further reduce the size of delivered full-screen images the
quality option is set to 50% and all images were regenerated.
parent 52f6ff76
Pipeline #18698 passed with stages
in 3 minutes and 4 seconds
../luke-stackpoole-ZRsJmpt9pNI-unsplash.jpg
\ No newline at end of file
../luke-stackpoole-ZRsJmpt9pNI-unsplash.jpg
\ No newline at end of file
......@@ -84,12 +84,12 @@ do
else
# Create new version for this breakpoint
echo "Generating $target_file ($target_width px)"
convert "$source_file" -resize "$target_width" "$target_file"
convert "$source_file" -resize "$target_width" -quality 50 "$target_file"
fi
else
# Instead of upscaling, create a relative link to the original
echo "Creating link $target_file (Source smaller then target)"
ln -sr "$source_file" "$target_file"
# Instead of upscaling, only reduce image quality
echo "Reducing quality of $target_file"
convert "$source_file" -quality 50 "$target_file"
fi
done
done
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment