Код: Выделить всё
Код: Выделить всё
tag.trim()).toList();
print("Adding tags to $imagePath: $tagList");
exif = await Exif.fromPath(imagePath);
try {
await exif!.writeAttribute('UserComment', tagList.join(','));
print("Tags written to EXIF metadata for $imagePath");
} catch (e) {
print("Error writing tags to EXIF metadata: $e");
} finally {
await exif!.close();
}
}
}
Подробнее здесь: https://stackoverflow.com/questions/791 ... exceptioin
Мобильная версия