imgwrench package

Submodules

imgwrench.cli module

Command Line Interface for Image Wrench.

imgwrench.cli.pipeline(image_processors, image_list, repeat, prefix, increment, digits, keep_names, force_overwrite, outdir, quality, preserve_exif, jpg)[source]

imgwrench.info module

Image meta information.

class imgwrench.info.ImageInfo(path, index, exif, xmp)[source]

Bases: object

Container for image meta information

imgwrench.param module

Custom parameter types for the click-based CLI

class imgwrench.param.Color[source]

Bases: click.types.ParamType

Parameter type representing a color as name, hex or rgb value

convert(value, param, ctx)[source]

Convert the value to the correct type. This is not called if the value is None (the missing value).

This must accept string values from the command line, as well as values that are already the correct type. It may also convert other compatible types.

The param and ctx arguments may be None in certain situations, such as when converting prompt input.

If the value cannot be converted, call fail() with a descriptive message.

Parameters:
  • value – The value to convert.
  • param – The parameter that is using this type to convert its value. May be None.
  • ctx – The current context that arrived at this value. May be None.
name = 'color'
class imgwrench.param.Ratio[source]

Bases: click.types.ParamType

Parameter type representing a ratio or rational number

convert(value, param, ctx)[source]

Convert the value to the correct type. This is not called if the value is None (the missing value).

This must accept string values from the command line, as well as values that are already the correct type. It may also convert other compatible types.

The param and ctx arguments may be None in certain situations, such as when converting prompt input.

If the value cannot be converted, call fail() with a descriptive message.

Parameters:
  • value – The value to convert.
  • param – The parameter that is using this type to convert its value. May be None.
  • ctx – The current context that arrived at this value. May be None.
name = 'ratio'

Module contents

A command line tool for my image processing needs.