1Image::ExifTool::ImportU(s3e)r Contributed Perl DocumentaItmiaogne::ExifTool::Import(3)
2
3
4

NAME

6       Image::ExifTool::Import - Import CSV and JSON database files
7

SYNOPSIS

9           use Image::ExifTool::Import qw(ReadCSV ReadJSON);
10
11           $err = ReadCSV($csvFile, \%database);
12
13           $err = ReadJSON($jsonfile, \%database);
14

DESCRIPTION

16       This module contains routines for importing tag information from CSV
17       (Comma Separated Value) and JSON (JavaScript Object Notation) database
18       files.
19

EXPORTS

21       Exports nothing by default, but ReadCSV and ReadJSON may be exported.
22

METHODS

24   ReadCSV / ReadJSON
25       Read CSV or JSON file into a database hash.
26
27       Inputs:
28           0) CSV file name or file reference.
29
30           1) Hash reference for database object.
31
32           2) Optional string used to represent an undefined (missing) tag
33           value.  (Used for deleting tags.)
34
35           3) For ReadCSV this gives the delimiter for CSV entries, with a
36           default of ",".  For ReadJSON this is the character set for
37           converting Unicode escape sequences in strings, with a default of
38           "UTF8".  See the ExifTool Charset option for a list of valid
39           character sets.
40
41       Return Value:
42           These functions return an error string, or undef on success and
43           populate the database hash with entries from the CSV or JSON file.
44           Entries are keyed based on the SourceFile column of the CSV or JSON
45           information, and are stored as hash lookups of tag name/value for
46           each SourceFile.
47

AUTHOR

49       Copyright 2003-2021, Phil Harvey (philharvey66 at gmail.com)
50
51       This library is free software; you can redistribute it and/or modify it
52       under the same terms as Perl itself.
53

SEE ALSO

55       Image::ExifTool(3pm)
56
57
58
59perl v5.32.1                      2021-04-26        Image::ExifTool::Import(3)
Impressum