mirror of
				https://github.com/immich-app/immich.git
				synced 2025-11-04 03:27:09 -05: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);
 | 
						|
  }
 | 
						|
}
 |