A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://sylikc.github.io/pyexiftool/examples.html below:

Website Navigation


Quick Start — PyExifTool 0.5.6 documentation

Examples / Quick Start

Try it yourself: All of these examples are using the images provided in the tests directory in the source

Understanding input and output from PyExifTool base methods

Almost all methods in PyExifTool revolve around the usage of two methods from the base exiftool.ExifTool class.

It is important to understand the ouput from each of these commands, so here’s a quick summary (you can click through to the API to read more details)

Input parameters

Both methods take an argument list *args. Examples:

Note

As a general rule of thumb, if there is an unquoted space on the command line to exiftool, it’s a separate argument to the method in PyExifTool.

If you have a working exiftool command-line but having trouble figuring out how to properly separate the arguments, please refer to the FAQ

Output values ExifToolHelper

Using methods provided by exiftool.ExifToolHelper:

ExifToolHelper provides some of the most commonly used operations most people use exiftool for

Getting Tags Setting Tags Exceptions

By default, ExifToolHelper has some built-in error checking, making the methods safer to use than calling the base methods directly.

Warning

While “safer”, the error checking isn’t fool-proof. There are a lot of cases where exiftool just silently ignores bad input and doesn’t indicate an error.

ExifTool

Using methods provided by exiftool.ExifTool

Calling execute() or execute_json() provides raw functionality for advanced use cases. Use with care!


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4