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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file tiffit-0.1.0.tar.gz.

File metadata

  • Download URL: tiffit-0.1.0.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/0.0.0 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for tiffit-0.1.0.tar.gz
Algorithm Hash digest
SHA256 84c3bc8618f177ca726019b68dd8464a50e870e5db1bbeaa022386c8cfe73b9c
MD5 6f9fcb08ee217b12a24ca2d87772cd46
BLAKE2b-256 e0474e610da0eacad0532d3050aadb9368f4eb216d897ef657479145f98e8aa4

See more details on using hashes here.

File details

Details for the file tiffit-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: tiffit-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/0.0.0 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for tiffit-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9402da65541706433c96ac74b2ae48c8e64617f4c336da1d84a14708366d8afa
MD5 884f67f6be9a84c6fd88c68cd2f551ce
BLAKE2b-256 b2c5de4df09a51ef80ebdb39a037a9412fc210e2e1c3a934cca24f79390e58bf

See more details on using hashes here.

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