Duplicate cached thumbnails based on grid column width
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 55/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 領域
- mobile, performance
調査の方向性
Start in app/src/main/kotlin/org/fossify/gallery/extensions/Context.kt, the location the issue identifies for overriding thumbnail request options. Reproduce with a clean cache, a grid column count that does not divide the screen width, then reverse the sort and compare cached thumbnail sizes. Done means the same grid size no longer creates duplicate cache entries differing by 1px; consider whether folder thumbnails show the same behavior.
索引モデルが issue の本文から書いたものです。
説明
Checklist
- I can reproduce the bug with the latest version given here.
- I made sure that there are no existing issues - open or closed - to which I could contribute my information.
- I made sure that there are no existing discussions - open or closed - to which I could contribute my information.
- I have read the FAQs inside the app (Menu -> About -> FAQs) and my problem isn't listed.
- I have taken the time to fill in all the required details. I understand that the bug report will be dismissed otherwise.
- This issue contains only one bug.
- I have read and understood the contribution guidelines.
Affected app version
1.13.1
Affected Android/Custom ROM version
Android 16
Affected device model
Pixel 10 (emulated)
How did you install the app?
Built from source
Steps to reproduce the bug
- Start with a clean cache.
- In the media grid use a column count that is not divisible by screen width.
- Take note of the current cached thumbnails and their resolution.
- Sort the media grid in the opposite direction.
- Look at the cache again, new entries have been created that have a 1px difference in resolution.
Expected behavior
App does not cache thumbnails twice for the same grid size.
Actual behavior
When tiles move in the media grid from one column to another there is a chance it creates a new cache entry that has a 1px size difference. This depends on if the screen width is divisible by the column count.
For example a screen with a width of 1080px and a column count of 7 creates cached thumbnails with sizes 152px and 153px. If a tile then moves to a column with a different width a new thumbnail is created.
The problem can be more or less noticeable depending on the screen resolution.
By estimation, not actually tested each resolution:
| Resolution (vertical) | Appears with column count |
|---|---|
| 1080x2424 (Pixel 10) | 7... |
| 1440x3120 (S25 Ultra) | 7... |
| 1220×2656 (Xiaomi 17) | 3, 6, 7... |
Screenshots/Screen recordings
No response
Additional information
The problem likely appears for folder thumbnails too.
Potential fix could be to calculate what the thumbnail resolution should be when columns change and round the result. Then pass that as an override to RequestOptions in app/src/main/kotlin/org/fossify/gallery/extensions/Context.kt
Tested with square thumbnails, no rounded corners, thumbnail spacing 1px.
Grid and tile padding affect thumbnail size too.
- 主要言語
- Kotlin
- スター
- 3.8k
- フォーク
- 270
- 平均マージ
- 1日 7時間
- マージ済み PR(30日)
- 13
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
FossifyOrg/Gallery のほかの issue
-
bug needs triage
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
FossifyOrg/Gallery#1196 ·
メンテナーはふだん 1 日以内に返信
-
bug needs triage
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
FossifyOrg/Gallery#1195 ·
メンテナーはふだん 1 日以内に返信
-
bug needs triage
難易度 2/5 半日 初心者へのやさしさ 60/100
FossifyOrg/Gallery#1181 ·
メンテナーはふだん 1 日以内に返信
-
bug needs triage
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
FossifyOrg/Gallery#1167 ·
メンテナーはふだん 1 日以内に返信
-
Instead of the trash symbol on the main page with folders, add a delete option to the dropdown menu.オープンfeature request needs triage
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
FossifyOrg/Gallery#1165 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
FossifyOrg/Gallery の issue をすべて見る
似ている issue
-
pending:code-area pending:issue-category to-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
T31n/YagniLauncher#1096 ·
メンテナーはふだん 1 日以内に返信
-
win_build: parallel PostBuildEvent race in example_app_atiopencl and example_app_nvopencl copying openclapp_kernels.cl対応中かも @qixuancao が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 73/100
メンテナーはふだん 1 日以内に返信
-
OkHttp versions 5.4.0+ no longer include baseline-prof.txt対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンbug
難易度 1/5 1時間未満 初心者へのやさしさ 83/100
lysine-dev/okhttp#9828 ·
メンテナーはふだん 1 日以内に返信
-
bug Impact: Low Work: Low
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
oppia/oppia-android#6532 · コメント 1 件 ·
メンテナーはふだん 3 日以内に返信