Skip to content

Commit

Permalink
🎨 updating image processing
Browse files Browse the repository at this point in the history
  • Loading branch information
chrede88 committed Dec 25, 2023
1 parent d8106cb commit d066884
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion layouts/_default/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{{ $name := .Site.Params.Author.name }}
{{ $icon := .Site.Params.Author.icon }}
{{ with $image }}
{{ $image = $image.Filter (images.Process "resize 288x288 webp" ) }}
{{ $image = $image.Filter (images.Process "resize 288x288 Lanczos q100 webp" ) }}
<div class="relative w-48">
<img
class="mb-2 rounded-full h-48 w-48"
Expand Down
2 changes: 1 addition & 1 deletion layouts/_default/section.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ <h1 class="text-4xl font-extrabold text-slate-700 dark:text-slate-200">
<a href="{{ .RelPermalink }}">
<div class="flex max-h-80 h-full w-full max-w-2xl flex-row rounded-xl bg-neutral-300 bg-clip-border text-slate-400 shadow-md dark:bg-neutral-700">
{{ with $cardimage }}
{{ $cardimage = $cardimage.Filter (images.Process "fit 400x600 webp" ) }}
{{ $cardimage = $cardimage.Filter (images.Process "fit 400x600 Lanczos q80 webp" ) }}
<div class="m-0 w-2/5 shrink-0 overflow-hidden rounded-xl rounded-r-none bg-clip-border dark:bg-neutral-700">
<img
src="{{ $cardimage.RelPermalink }}"
Expand Down
2 changes: 1 addition & 1 deletion layouts/_default/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ <h2 class="mt-4 text-2xl text-slate-500 dark:text-slate-400">
</div>

{{ with $featureimage }}
{{ $featureimage = $featureimage.Filter (images.Process "resize 736x webp" ) }}
{{ $featureimage = $featureimage.Filter (images.Process "resize 736x Lanczos q100 webp" ) }}
<div class="flex flex-col">
<img
class="mt-4 h-full w-full object-cover"
Expand Down
2 changes: 1 addition & 1 deletion layouts/misc/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{{ $name := .Params.name | default .Site.Params.Author.name }}
{{ $icon := .Params.icon | default .Site.Params.Author.icon }}
{{ with $image }}
{{ $image = $image.Filter (images.Process "resize 288x288 webp" ) }}
{{ $image = $image.Filter (images.Process "resize 288x288 Lanczos q100 webp" ) }}
<div class="relative w-48">
<img
class="mb-2 rounded-full h-48 w-48"
Expand Down
2 changes: 1 addition & 1 deletion layouts/shortcodes/figArray.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
<div class="flex flex-col">
<div class="grid grid-cols-{{ $cols }} gap-1">
{{ range $image := $images }}
{{ $image = $image.Filter (images.Process "resize 768x webp") }}
{{ $image = $image.Filter (images.Process "resize 768x Lanczos q100 webp") }}
<img src="{{ $image.RelPermalink }}" alt="image" loading="lazy">
{{ end }}
</div>
Expand Down

0 comments on commit d066884

Please sign in to comment.