Skip to content

アニメーション画像の自動再生設定を追加#2099

Draft
ikuradon wants to merge 3 commits into
SnowCait:mainfrom
ikuradon:feature/animated-image-autoplay
Draft

アニメーション画像の自動再生設定を追加#2099
ikuradon wants to merge 3 commits into
SnowCait:mainfrom
ikuradon:feature/animated-image-autoplay

Conversation

@ikuradon
Copy link
Copy Markdown
Contributor

@ikuradon ikuradon commented Apr 25, 2026

概要

  • GIF だけでなく APNG/PNG、WebP、AVIF を対象にしたアニメーション画像の自動再生設定を追加します。
  • freezeframe の挙動を参考にしつつ、外部ライブラリ本体と同梱 CSS には依存しない実装にしています。
  • 画像種別判定、アニメーション判定、freezeframe の描画/状態管理を Img.svelteFreezeframeImage.svelte から分離しました。
  • 透過 PNG/GIF などの再生時に first-frame が背面に残って見える問題を修正しました。

Ref: #1924

確認

  • ./node_modules/.bin/prettier --write ...
  • ./node_modules/.bin/eslint ...
  • git diff --check
  • npm run check は既存の unrelated diagnostics で失敗します: Restriction.ts, EmojiPicker.svelte, Gdpr.svelte, channels/[nevent=note]/+page.svelte, relays/[url]/+page.svelte

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant