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:
parent
e922f2f28d
commit
5be48c59c6
@ -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 -}}
|
||||||
|
Loading…
Reference in New Issue
Block a user