is1024 static method
Implementation
static bool is1024(String filePath) {
try {
final file = File(filePath);
if (!file.existsSync()) return false;
final bytes = file.readAsBytesSync();
final image = decodeImage(bytes);
return image != null && image.width == 1024 && image.height == 1024;
} catch (e) {
print("is 1024, error: $e");
return false;
}
}