Warn before converting animated images to non-animated formats

オープン
#2,000 コメント 1 件 リアクション 2 件 担当者 0 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
dart, flutter
領域
mobile-dev

調査の方向性

まず、画像変換のエントリーポイントを追跡し、単一画像の変換とバッチ変換でアニメーション画像をどのように識別しているかを確認します。アニメーション画像を使った場合と、混在した選択を使った場合に JPEG への変換を再現し、その後、変換前に警告が表示され、アニメーションが失われる可能性を明確に説明していることを確認します。

索引モデルが issue の本文から書いたものです。

説明

edition P2 page:collection type:feature

Is your feature request related to a problem? Please describe.

I noticed some images didn’t support tagging and rating. They were WebP (.webp) images, so I assumed metadata editing isn’t supported for WebP files.

I used Aves’ search to find all .webp images, selected them all, and converted them to JPEG (no quality loss) so I could manage their metadata. I checked some of the converted images and they looked great so i deleted the originals.

I later realized some of those WebP images were animated. Converting them to JPEG cause data loss, only a single still frame of the animation is left. Thankfully I had a backup, but others may be less fortunate.

Describe the solution you'd like

If the user attempts to convert an animated image to a format that doesn’t support animation, show a clear confirmation dialog warning about data loss.

Example single-image message:
"Data-loss warning: converting to JPEG will capture only a single frame of this animated image. Continue?"

Example batch-message if the selection includes animations:
"Data-loss warning: some selected images are animated. Converting to JPEG will turn each animated image into a still frame. Continue?"

Describe alternatives you've considered

One could search for WebP files that aren’t animated before converting, but that’s something you only think to do after being burned once or twice.

Additional context

I like Aves!

主要言語
Dart
スター
5.6k
フォーク
268
平均マージ
1日 15時間
マージ済み PR(30日)
23

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

deckerst/aves のほかの issue

deckerst/aves の issue をすべて見る

似ている issue

Dart の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。