Questions tagged [tiff]

TIFF (originally standing for Tagged Image File Format) is a file format for storing images.

Tagged Image File Format (abbreviated TIFF) is a file format for storing raster images, popular among Apple Macintosh owners, graphic artists, the publishing industry, and both amateur and professional photographers in general. As of 2009, it is under the control of Adobe Systems.

Originally created by the company Aldus for use with what was then called "desktop publishing", the TIFF format is widely supported by image-manipulation applications, by publishing and page layout applications, by scanning, faxing, word processing, optical character recognition and other applications. Adobe Systems, which acquired Aldus, now holds the copyright to the TIFF specification. TIFF has not had a major update since 1992.

Resources

2367 questions
9
votes
6 answers

Split multi-page tiff with python

What's the best way to split a multi-page TIFF with python? PIL doesn't seem to have support for multi-page images, and I haven't found an exact port for libtiff for python. Would PyLibTiff be the way to go? Can somebody provide a simple example…
user1145643
  • 896
  • 5
  • 15
  • 26
9
votes
4 answers

Jpeg from Tiff (jpeg-compressed)

How can i extract image from JPEG-compressed TIFF file ? I've read bytes according to StripOffests and StripBytesCount fields, but i couldn't load an image from them.
user393679
  • 329
  • 2
  • 3
  • 10
9
votes
5 answers

ImageMagick or GhostScript: convert a multi-page TIFF to a multi-page PDF

I need to convert a multi-page TIFF to a multi-page PDF. I have access to ImageMagick and GhostScript (in *nix environment). How do I do this? Thanks. UPDATE: It turns out that my test file was wrong (it didn't have multiple pages), which made me…
StackOverflowNewbie
  • 39,403
  • 111
  • 277
  • 441
9
votes
3 answers

No Tensorflow decoder for TIFF images?

I have noticed that Tensorflow provides standard procedures for decoding jpeg, png and gif images after reading files. For instance for png: import tensorflow as tf filename_queue = tf.train.string_input_producer(['/Image.png']) # list of files to…
Dr_Zaszuś
  • 546
  • 1
  • 7
  • 15
9
votes
4 answers

Read a tiff file's dimension and resolution without loading it first

How to read a tiff file's dimension (width and height) and resolution (horizontal and vertical) without first loading it into memory by using code like the following. It is too slow for big files and I don't need to manipulate them. Image tif =…
z1x2
  • 793
  • 1
  • 5
  • 8
9
votes
1 answer

on reading tiff file using skimage

I am using the following code to read a set of tiff files from a folder from PIL import image from skimage import io io.use_plugin('pil') images = os.listdir(train_data_path) for image_name in images: img =…
user785099
  • 5,323
  • 10
  • 44
  • 62
9
votes
5 answers

Need .NET library fo converting TIFF files to PDF

Does anyone know of a good .NET library to convert TIFF files, that may be multi-page, to PDF files? The TIFF files are stored on a file share, and the PDF files need to be stored in the same location as the TIFF file. The tool is supposed to be…
Palle Agermark
  • 346
  • 1
  • 3
  • 5
9
votes
1 answer

PIL(low) and multi-page TIFFS

This should be relatively easy, but who knows... Is there a way to retrieve the number of frames in a multi-page TIFF file using PIL/Pillow, without iterating through the whole stack until seek raises an error?
antony
  • 2,877
  • 4
  • 31
  • 43
9
votes
1 answer

Tiff file compression with C#

I have a tiff file which during original creation and saving has compression type "LZW". System.Drawing.Bitmap bitmap = new System.Drawing.Bitmap(800, 1000); Graphics g = Graphics.FromImage(bitmap); fileName = saveDirectory + id +…
Philo
  • 1,931
  • 12
  • 39
  • 77
9
votes
2 answers

In a TIFF create a Sub IFD with thumbnail (libtiff)

I know thumbnail.c includes some code that creates a thumbnail and places it in a sub IDF, but there is a lot going on in that code (generating the thumbnail, applying a contrast curve, etc.) and I am having difficulty reproducing just writing a…
KSletmoe
  • 977
  • 9
  • 23
9
votes
3 answers

Image resizing using C#

The images that are fresh out from digital cameras are often above the size of 2-3 MB making it difficult for it to get transferred over email and other ways. This requires the image to be resized (in terms of file size and not height or width).…
James
  • 1,213
  • 2
  • 15
  • 26
8
votes
4 answers

Simple way to write uncompressed JPEG or PNG image?

I have a raw image in memory, organized as an array of 32-bit RGB values. I'd like to write that out as quickly as possible to an image file so that I can free up the memory. Is there a way to do the following to write either an uncompressed JPEG,…
xyz
  • 83
  • 1
  • 6
8
votes
3 answers

How can I simply load a greyscale tiff in libtiff and get an array of pixel intensities?

I am trying to understand images some more, and I'm having a great deal of trouble. From using matlab, I have experience in using imread('test.tif'), and getting a beautiful matrix of rows vs. columns, where you have the intensity of each pixel as…
The_Anomaly
  • 83
  • 1
  • 1
  • 3
8
votes
2 answers

Merge multiple multi-page tiff images to a single tiff C#

In my scenario I have 3 or more multi-page tiff images which I need to merge into a single tiff image. Below is the the code I have tried. It merges in to a single tiff image but only with first page of all tiff images. private static void…
crony
  • 491
  • 5
  • 14
  • 25
8
votes
4 answers

how to efficiently import multiple raster (.tif) files into R

I am an R novice, especially when it comes to spatial data. I am trying to find a way to efficiently import multiple (~600) single-band raster (.tif) files into R, all stored in the same folder. Not sure if this matters but note that, when viewed in…
Dorothy
  • 523
  • 1
  • 5
  • 17