Learn R Programming

ijtiff

Introduction

This is a general purpose TIFF I/O utility for R. The tiff package already exists for this purpose but ijtiff adds some functionality and overcomes some bugs therein.

  • ijtiff can write TIFF files whose pixel values are real (floating-point) numbers; tiff cannot.
  • ijtiff can read and write text images; tiff cannot.
  • tiff struggles to interpret channel information and gives cryptic errors when reading TIFF files written by the ImageJ software; ijtiff works smoothly with these images.

To learn about ijtiff and how to use it, visit the package website at https://docs.ropensci.org/ijtiff/.

Installation

libtiff

ijtiff requires you to have the libtiff C library installed. To install libtiff:

  • On Debian Linux, try sudo apt-get install libtiff-dev libbz2-dev libdeflate-dev liblzma-dev libwebp-dev libzstd-dev zlib1g-dev.
  • On Fedora Linux, try sudo yum install libtiff-devel libbz2-devel libdeflate-devel liblzma-devel libwebp-devel libzstd-devel zlib-devel.
  • On Mac, you need Homebrew. Then in the terminal, run brew install libtiff.
  • On Windows, no setup is required.

Installing the release version of the ijtiff R package

You can install ijtiff from CRAN (recommended) with:

install.packages("ijtiff")

Installing the development version of the ijtiff R package

You can install the development version from GitHub with:

devtools::install_github("ropensci/ijtiff")

Acknowledgement

This package uses a lot of code from the original tiff package by Simon Urbanek.

Contribution

Contributions to this package are welcome. The preferred method of contribution is through a github pull request. Feel free to contact me by creating an issue. Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

Copy Link

Version

Install

install.packages('ijtiff')

Monthly Downloads

1,696

Version

3.0.0

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Rory Nolan

Last Published

March 2nd, 2025

Functions in ijtiff (3.0.0)

write_tif

Write images in TIFF format
as_EBImage

Convert an ijtiff_img to an EBImage::Image.
print.ijtiff_img

Print method for an ijtiff_img.
count_frames

Count the number of frames in a TIFF file.
display

Basic image display.
ijtiff

ijtiff: TIFF I/O for ImageJ users
ijtiff_img

ijtiff_img class.
read_tags

Read TIFF tag information without actually reading the image array.
get_supported_tags

Get supported TIFF tags
read_tif

Read an image stored in the TIFF format
linescan-conversion

Rejig linescan images.
tif_tags_reference

TIFF tag reference.
text-image-io

Read/write an image array to/from disk as text file(s).