immich/mobile/lib
Toni b71039e83c
perf(mobile): remove small thumbnail and cache generated thumbnails (#17682)
* Remove small thumbnail and cache generated thumbnails

* Creating the small thumbnails takes quite some time, which should not be underestimated.
* The time needed to generate the small or big thumbnail is not too different from each other. Therefore there is no real benefit of the small thumbnail and it only adds frustration to the end user experience. That is because the image appeared to have loaded (the visual move from blur to something better) but it's still so bad that it is basically a blur. The better solution is therefore to stay at the blur until the actual thumbnail has loaded.
* Additionaly to the faster generation of the thumbnail, it now also gets cached similarly to the remote thumbnail which already gets cached. This further speeds up the all over usage of the app and prevents a repeatet thumbnail generation when opening the app.

* Decrease quality and use try catch

* Decreased the quality from the default 95 to 80 to provide similar quality with much reduces thumbnail size.
* Use try catch around the read of the cache file.

* Replace ImmutableBuffer.fromUint8List with ImmutableBuffer.fromFilePath

* Removed unnecessary comment

* Replace debugPrint with log.severe for catch of error

---------

Co-authored-by: Alex <alex.tran1502@gmail.com>
2025-04-21 12:51:37 -05:00
..
constants feat: user sync stream (#16862) 2025-04-17 10:25:27 -05:00
domain feat(mobile): assets + exif stream sync placeholder (#17677) 2025-04-18 19:01:16 +00:00
entities refactor(mobile): device asset entity to use modified time (#17064) 2025-04-03 14:42:35 -05:00
extensions feat: user sync stream (#16862) 2025-04-17 10:25:27 -05:00
infrastructure feat(mobile): assets + exif stream sync placeholder (#17677) 2025-04-18 19:01:16 +00:00
interfaces feat: opt-in sync of deletes and restores from web to Android (#16732) 2025-04-08 08:50:40 -05:00
mixins chore: flutter 3.29.1 (#16730) 2025-03-10 21:46:36 -05:00
models feat(ml): better multilingual search with nllb models (#13567) 2025-03-31 11:06:57 -04:00
pages feat(mobile): map improvements (#17714) 2025-04-21 05:55:13 +00:00
providers perf(mobile): remove small thumbnail and cache generated thumbnails (#17682) 2025-04-21 12:51:37 -05:00
repositories feat: opt-in sync of deletes and restores from web to Android (#16732) 2025-04-08 08:50:40 -05:00
routing feat(mobile): map improvements (#17714) 2025-04-21 05:55:13 +00:00
services feat: user sync stream (#16862) 2025-04-17 10:25:27 -05:00
theme chore(mobile): small visual fix and update (#17547) 2025-04-13 08:01:32 -05:00
utils feat(mobile): map improvements (#17714) 2025-04-21 05:55:13 +00:00
widgets feat(mobile): map improvements (#17714) 2025-04-21 05:55:13 +00:00
main.dart feat: user sync stream (#16862) 2025-04-17 10:25:27 -05:00