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
21
votes
2 answers

Converting TIFF files to PNG in .Net

I have to build an application in .Net (3.5) to pick up a TIFF file saved from another piece of software and convert it into a PNG so that it can be rendered easily in Internet Explorer. Does anyone know of any libraries (preferably freeware/open…
colethecoder
  • 1,139
  • 2
  • 8
  • 26
21
votes
6 answers

Convert different picture formats (jpg, gif, png, etc.) to TIFF format

I am working on reading text from an image through OCR. It only supports TIFF format images. So, I need to convert other formats to TIFF format. Can it be done? Please help by providing some references.
user1509
  • 1,151
  • 5
  • 17
  • 45
19
votes
6 answers

Java library for reading and writing IPTC metadata to JPEG and TIFF

Does anyone know some opensource Java library for reading and writing IPTC metadata to JPEG and TIFF? Now I'm using Apache Sanselan. Unfortunately, it can only read IPTC, not write (http://commons.apache.org/sanselan/formatsupport.html). Will be…
stormdb
  • 371
  • 1
  • 4
  • 13
18
votes
4 answers

How to run Photoviewer.dll in command line

When I run the following code below in a command prompt (as administrator): "C:\Program Files\Windows Photo Viewer\PhotoViewer.dll" "C:\00012.tif" it produces error as shown below : "This file does not have a program associated with it for…
jinsungy
  • 10,717
  • 24
  • 71
  • 79
18
votes
3 answers

Reading tiff image metadata in Python

How can I read metada, like coordinates, from a TIFF image in Python? I tried foo._getexif() from PIL, but got the message: AttributeError: 'TiffImageFile' object has no attribute '_getexif' Is it possible to get it with PIL?
Filipe Vargas
  • 193
  • 1
  • 1
  • 7
17
votes
2 answers

Good Tiff library for .NET

I know libtiff for C, but haven't found a port for .NET. Does such a port exist?
kitsune
  • 11,516
  • 13
  • 57
  • 78
17
votes
4 answers

Convert TIFF to JPG format

I have a TIFF file with two pages. When I convert the file to JPG format I lose the second page. Is there any way to put two images from a TIFF file into one JPG file? Because TIFF files are too big, I have to decrease their sizes. Is there any way…
ozman
  • 256
  • 1
  • 4
  • 18
16
votes
3 answers

How to open a multi-frame TIFF imageformat image in .NET 2.0?

Image.FromFile(@"path\filename.tif") or Image.FromStream(memoryStream) both produce image objects with only one frame even though the source is a multi-frame TIFF file. How do you load an image file that retains these frames? The tiffs are saved…
mirezus
  • 13,892
  • 11
  • 37
  • 42
15
votes
4 answers

Python and 16 Bit Tiff

How can I convert and save a 16 bit single-channel TIF in Python? I can load a 16 and 32 bit image without an issue, and see that the 32 bit image is mode F and the 16 bit image is mode I;16S: import Image i32 = Image.open('32.tif') i16 =…
mankoff
  • 2,225
  • 6
  • 25
  • 42
15
votes
2 answers

Load a tiff stack in a numpy array with python

I am having a little issue with .tif files. I am sure it is only a minor problem that I can´t get around (keep in mind, I am a relatively new programmer). Basically: I have prepared .tif files that are 64x64xn in size (n up until 1000). The image is…
Amadeus
  • 322
  • 1
  • 2
  • 9
15
votes
1 answer

Why am I getting "tiff page 1 not found" Lebtonica warning in Tesseract?

I just started using Tesseract. I am following the instructions described here. I have created a test image like this: training/text2image --text=test.txt --outputbase=eng.Arial.exp0 --font='Arial' --fonts_dir=/usr/share/fonts Now I want to train…
15
votes
2 answers

Reading and Writing out TIFF image in Java

I tried the following code to accomplish the task of reading and writing tiff images: // Define the source and destination file names. String inputFile = /images/FarmHouse.tif String outputFile = /images/FarmHouse.bmp // Load the input image. …
user224270
  • 557
  • 3
  • 7
  • 19
15
votes
7 answers

Splitting a multipage TIFF image into individual images (Java)

Been tearing my hair on this one. How do I split a multipage / multilayer TIFF image into several individual images? Demo image available here. (Would prefer a pure Java (i.e. non-native) solution. Doesn't matter if the solution relies on commercial…
aioobe
  • 413,195
  • 112
  • 811
  • 826
14
votes
2 answers

Writing 10,12 bit TIFF files with LibTIFF C++

I'm trying to write 10,12 bit RGB TIFF files with LibTIFF. The pixel data is saved locally in an unsigned short buffer (16bits) 1) If I set TIFFTAG_BITSPERSAMPLE to 10 or 12, not enough bits are being read from the buffer, and the output is…
Itsik
  • 3,920
  • 1
  • 25
  • 37
14
votes
4 answers

What is the best way to save image metadata alongside a tif?

In my work as a grad student, I capture microscope images and use python to save them as raw tif's. I would like to add metadata such as the name of the microscope I am using, the magnification level, and the imaging laser wavelength. These details…
Becca
  • 302
  • 1
  • 3
  • 9