resolve method
Resolves and returns the image data.
Implementation
@override
Future<ImageData> resolve() async {
final bytes = await File(path).readAsBytes();
final decoded = img.decodeImage(bytes);
if (decoded == null) {
throw Exception('Failed to decode image: $path');
}
return ImageData(decoded);
}