High performance self-hosted photo and video management solution.
TypeScript backup-toolfluttergoogle-photosgoogle-photos-alternativejavascriptmobile-appnestjsnodejsphoto-galleryphotosphotos-managementself-hostedsveltesveltekittypescriptvideos
fix(mobile): not throwing error when cannot parse orientation value (#13853)
Alex343cdcfeed3c
diff --git a/mobile/lib/entities/asset.entity.dart b/mobile/lib/entities/asset.entity.dartindex 8e2d9c84d5..182c10307f 100644--- a/mobile/lib/entities/asset.entity.dart+++ b/mobile/lib/entities/asset.entity.dart@@ -524,7 +524,8 @@ bool isRotated270CW(int orientation) {/// Returns `true` if this [Asset] is flipped 90° or 270° clockwisebool isFlipped(AssetResponseDto response) {- final int orientation = response.exifInfo?.orientation?.toInt() ?? 0;+ final int orientation =+ int.tryParse(response.exifInfo?.orientation ?? '0') ?? 0;return orientation != 0 &&(isRotated90CW(orientation) || isRotated270CW(orientation));}