mirror of
https://github.com/immich-app/immich.git
synced 2025-08-11 09:16:31 -04:00
11 lines
270 B
Dart
11 lines
270 B
Dart
import 'dart:ui';
|
|
|
|
import 'package:flutter/painting.dart';
|
|
|
|
extension CodecImageInfoExtension on Codec {
|
|
Future<ImageInfo> getImageInfo({double scale = 1.0}) async {
|
|
final frame = await getNextFrame();
|
|
return ImageInfo(image: frame.image, scale: scale);
|
|
}
|
|
}
|