Skip to main content

Lightweight tiff utilities

Project description

tiffit

Lightweight command-line interface for handling tiff files in BigTIFF format.

Convert, extract information, and concatenate. That's it. Nothing fancy.

installation and usage

Install with pip and then use from command line.

pip install tiffit

# convert file into a well-behaved bigtiff file
tiffit convert old.tiff new.tiff

# get info about file without loading into memory
tiffit info filename.tiff

# concatenate two tiff files into a single bigtiff file
tiffit concat file1.tiff file2.tiff newfile.tiff

Notes / caveats

  • If there is other information you would like read out from the info command, please let me know, bearing in mind I am trying to keep this interface fairly universal and simple.
  • For an excellent overview of tiff (thousands of incompatible file formats), see [https://www.fileformat.info/format/tiff/egff.htm](this excellent overview). It is a bit dated, but is still the best thing I've found.
  • If you need a package with more complexity, see:

To do

  • add keyword argument to info so user can check on specific image in stack. Better yet, don't allow mixing of formats just make this a pure bigtiff library: add autoconversion of concatenated files.
  • add verbosity controller for convert and concat.

Acknowledgments

  • Powered by the tifffile and tifftools packages.
  • Developed with support from NIH Bioinformatics, NIEHS Neurobehavioral Core, NIEHS Neurobiology Laboratories. In particular thanks to Shaohua Wang for help during development.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tiffit-0.1.0.tar.gz (4.4 kB view hashes)

Uploaded Source

Built Distribution

tiffit-0.1.0-py3-none-any.whl (5.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page