Update fanbox download

Now will read exif data before write exif data.
This commit is contained in:
2022-07-15 05:09:42 +00:00
committed by GitHub
parent 061aa56bde
commit 70b87e055d
12 changed files with 343 additions and 35 deletions

View File

@@ -30,6 +30,17 @@ ExifDataRef* exif_image_get_exif_data(ExifImage* image) {
return &image->exif_data_ref;
}
int exif_image_read_metadata(ExifImage* image) {
if (!image) return 1;
try {
image->image->readMetadata();
} catch (std::exception& e) {
printf("%s\n", e.what());
return 1;
}
return 0;
}
int exif_image_set_exif_data(ExifImage* image, ExifData* data) {
if (!image || !data) return 1;
image->image->setExifData(data->data);