-
Notifications
You must be signed in to change notification settings - Fork 24
Description
Hi, thank's for a great work...
As many of You know the ExifTool replaces newlines (\n) in XMP description with dots,
a simple workaround to get all data with no replaces in newlines is to request ExifTool for json output.
its also great if you would like to have the ExifTool output to a Java object
ExiftoolData aExiftoolData = gson.fromJson(resonsefromexiftool, ExiftoolData);
the argument is simple, -json
My solution to my feature request could be simple as this....
String getImageDataAsJson(File image);
String getImageDataAsJson(File image, ExifToolOptions options); (options if -a is wanted, or -G)
Where the returned value is all the output from ExifTool, no extra ...
Here is how the json data is returned from exiftool
exiftool -json IMG_4140.JPG
[{
"SourceFile": "IMG_4140.JPG",
"ExifToolVersion": 12.41,
"FileName": "IMG_4140.JPG",
"Directory": ".",
"FileSize": "3.2 MiB",
"FileModifyDate": "2023:03:21 08:16:25+01:00",
"FileAccessDate": "2023:03:21 10:55:39+01:00",
"FileInodeChangeDate": "2023:03:21 08:46:01+01:00",
"FilePermissions": "-rw-r--r--",
"FileType": "JPEG",
"FileTypeExtension": "jpg",
"MIMEType": "image/jpeg",
"ExifByteOrder": "Big-endian (Motorola, MM)",
"Make": "Apple",
"Model": "iPhone 8",
.....
}]