Perl Diver 2.33
Main Environment Variables Perl Default Values Perl Config - Summary Perl Config - Full Installed Modules List Directory uptime Docs

Module Documentation
Details and documentation about a specific module, including version and documentation (if available). Note that while links to perldoc.com and search.cpan.org are provided, the module may be part of a larger distribution. If you reach a File Not Found page on either site, please try the parent module.

Image::ExifTool::Import

Name Image::ExifTool::Import
Version 1.10
Located at /usr/share/perl5
File /usr/share/perl5/Image/ExifTool/Import.pm
Is Core No
Search CPAN for this module Image::ExifTool::Import
Documentation Image::ExifTool::Import
Module Details Image::ExifTool::Import

NAME

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


SYNOPSIS

    use Image::ExifTool::Import qw(ReadCSV ReadJSON);
    $err = ReadCSV($csvFile, \%database);
    $err = ReadJSON($jsonfile, \%database);


DESCRIPTION

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


EXPORTS

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


METHODS

ReadCSV / ReadJSON

Read CSV or JSON file into a database hash.

Inputs:
0) CSV file name or file reference.

1) Hash reference for database object.

2) Optional string used to represent an undefined (missing) tag value. (Used for deleting tags.)

3) For ReadCSV this gives the delimiter for CSV entries, with a default of ``,''. For ReadJSON this is the character set for converting Unicode escape sequences in strings, with a default of ``UTF8''. See the ExifTool Charset option for a list of valid character sets.

Return Value:
These functions return an error string, or undef on success and populate the database hash with entries from the CSV or JSON file. Entries are keyed based on the SourceFile column of the CSV or JSON information, and are stored as hash lookups of tag name/value for each SourceFile.


AUTHOR

Copyright 2003-2022, Phil Harvey (philharvey66 at gmail.com)

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.


SEE ALSO

Image::ExifTool(3pm)

Perl Diver brought to you by ScriptSolutions.com © 1997- 2026