diff --git a/mobile/lib/entities/asset.entity.dart b/mobile/lib/entities/asset.entity.dart index 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° clockwise bool 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)); }