You've already forked immich
mirror of
https://github.com/immich-app/immich.git
synced 2025-08-08 23:07:06 +02:00
chore(mobile): add orientation tests for exif (#16806)
Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com>
This commit is contained in:
18
mobile/test/fixtures/exif.stub.dart
vendored
Normal file
18
mobile/test/fixtures/exif.stub.dart
vendored
Normal file
@ -0,0 +1,18 @@
|
||||
import 'package:immich_mobile/domain/models/exif.model.dart';
|
||||
|
||||
abstract final class ExifStub {
|
||||
static final size = const ExifInfo(assetId: 1, fileSize: 1000);
|
||||
|
||||
static final gps = const ExifInfo(
|
||||
assetId: 2,
|
||||
latitude: 20,
|
||||
longitude: 20,
|
||||
city: 'city',
|
||||
state: 'state',
|
||||
country: 'country',
|
||||
);
|
||||
|
||||
static final rotated90CW = const ExifInfo(assetId: 3, orientation: "90");
|
||||
|
||||
static final rotated270CW = const ExifInfo(assetId: 4, orientation: "-90");
|
||||
}
|
Reference in New Issue
Block a user