Skip to content

Animated GIFs #394

Answered by Sped0n
mousemat86 asked this question in Q&A
Sep 3, 2024 · 2 comments · 3 replies
Discussion options

You must be logged in to vote
Screen.Recording.2024-09-04.at.12.43.24.mp4

Actually it works on my laptop?

GIF file I'm using

{{- $context := . -}}
{{- $params := .Page.Params | merge .Site.Params.Page -}}

{{- with partial "function/getImageSlice.html" .  -}}
  {{- $index := len . -}}
  {{- $context.Scratch.Add "img" slice -}}
  {{- range sort . "Name" "desc" -}}
    {{- $image := . -}}
    {{- $index = sub $index 1 -}}
    {{- $alt := .Name -}}
    {{- with $params.unifiedAlt -}}
      {{- $alt = . -}}
    {{- end -}}
    {{- $lores := $image -}}
    {{- $hires := $image -}}
    {{- if ne $image.MediaType.SubType "gif" -}}
      {{- $lores = .Resize (site.Params.loResOpt | default "700x webp Lanczos q60") …

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@Sped0n
Comment options

@Sped0n
Comment options

Answer selected by Sped0n
Comment options

You must be logged in to vote
1 reply
@Sped0n
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants