Raise the quality of low res images

They might be scaled up by the browser making compression artifacts much
more visible.
This commit is contained in:
Vojtěch Káně 2020-05-03 14:47:11 +02:00
parent e922f2f28d
commit 5be48c59c6

View File

@ -40,7 +40,7 @@ where possible named params are:
{{- end -}} {{- end -}}
{{- if (lt (len $srcset) (len $sizes)) -}} {{- if (lt (len $srcset) (len $sizes)) -}}
{{- $compressed := $img.Fit (printf "%dx%d q50" $img.Width $img.Height) -}} {{- $compressed := $img.Fit (printf "%dx%d q90" $img.Width $img.Height) -}}
{{- $srcset = $srcset | append (printf "%s %dw" $compressed.RelPermalink $compressed.Width) -}} {{- $srcset = $srcset | append (printf "%s %dw" $compressed.RelPermalink $compressed.Width) -}}
{{- $largest = $compressed -}} {{- $largest = $compressed -}}
{{- end -}} {{- end -}}