Questions tagged [libtiff]

Open source, cross-platform library and tools for TIFF images.

Project homepage

This software provides support for the Tag Image File Format (TIFF), a widely used format for storing image data.

Included in this software distribution is a library, libtiff, for reading and writing TIFF, a small collection of tools for doing simple manipulations of TIFF images on UNIX systems, and documentation on the library and tools. A small assortment of TIFF-related software for UNIX that has been contributed by others is also included.

The library, along with associated tool programs, should handle most of your needs for reading and writing TIFF images on 32- and 64-bit machines. This software can also be used on older 16-bit systems though it may require some effort and you may need to leave out some of the compression support.

310 questions
0
votes
0 answers

Get an error writing Linear DNG via Libtiff .NET

I am trying to create a linear DNG file based on JPG using Lossy JPEG (34892) compression (which was introduced in DNG 1.4.0.0). After running the method below I got an error "Error: File format is invalid (JPEG dimensions do not match tile)" from…
dimonser
  • 675
  • 6
  • 12
0
votes
0 answers

Compiled dylib's version doesn't match the required version for my executable

I'm trying to bundle up my Mac application for distribution on various systems. I'm building on Apple Silicon but I want my app to be compatible with x86_64 systems and have some backwards compatibility (e.g. 10.11). I'm not using Xcode. Using otool…
chiasmos
  • 110
  • 7
0
votes
1 answer

JPEG compression quality in a TIFF image file

I built the tiff library from source including zlib and jpeg compression options. I can save with either compression type depending if I want lossless images at a higher file size, or smaller file sizes but lossy images. The issue I have is, how do…
steveo225
  • 11,394
  • 16
  • 62
  • 114
0
votes
2 answers

How to get GeoTiff world-positioning metadata using libtiff.net

I am trying to get the bounding-box of a GeoTiff file from the ALOS dataset (JAXA): Tiff terrainTiff = Tiff.Open(@"Assets/Project/Heightmaps/" + "N046E007" + "/ALPSMLC30_" + "N046E007" + "_DSM.tif", "r"); FieldValue[] modelPointTags…
dclipca
  • 1,739
  • 1
  • 16
  • 51
0
votes
1 answer

TIFF file has weird meta information specifically in image size

I have some tiff image files which have multiple pages in one tiff file. I tried to make separated image files by reading image meta information with libtiff and some python libraries, but the image size seems weird. Below is the description of a…
0
votes
1 answer

libtiff build undefined reference to `_imp__TIFFOpen' error

probably this is a trivial newbie question, however, I can't figure out how to solve it. I'm trying to build a test program using libtiff (test program copied from here). I've downloaded the static library libtiff.lib as well as the required header…
MaxC
  • 885
  • 7
  • 21
0
votes
0 answers

Read tif tag from a tif file using LibTif[Edited : Adding sample code]

I have a requirement where I need to read couple of Tiff tags from a input Tiff file. As user can provide any tag ID to read. For this, I need to know the type of the value of that tag so that i can read the tag and return the value to user. const…
Nihal Kumar
  • 305
  • 3
  • 16
0
votes
0 answers

Why gimp tiff file is 1.7 times smaller than matlab file for the same image

I was surprized to see that the tiff written in matlab with lzw compression (62.5 Mo) was 1.7 times larger than the same file, opened in gimp, and exported to a new file, with lzw compression (36.6 Mo). Both seems to use libTiff 4.0 for image…
beesleep
  • 1,322
  • 8
  • 18
0
votes
0 answers

"Skipping incompatible library" when building Qt project with libtiff

Qt's standard image library does not support multi-layer and multi-channel TIFF files, so I wanted to use libtiff for that and downloaded it from http://download.osgeo.org/libtiff/ I built it with nmake (nmake /f makefile.vc), linked to the library…
Endauriel
  • 402
  • 5
  • 17
0
votes
0 answers

Dont get imagedepth value in C using libtiff

I am trying to parse a stack of tiff files using the Library libtiff5. To do so, I first need to read the the imagelength, width and depth. But for the imagedepth, I dont get any value back. The variable a in my code (below) was used to check if the…
Zeki
  • 1
  • 1
0
votes
1 answer

Can I modify the total number of pages in multi-page tiff?

I am receiving data from a camera and saving each image as a page in a multi-page tiff. I can set that each file has e.g. 100 pages and I am calling: TIFFSetField(out, TIFFTAG_PAGENUMBER, page_number, total_pages); However, if I am unable to write…
user2165039
  • 73
  • 1
  • 8
0
votes
1 answer

libtiff for C using Snow Leopard. Storage size of TIFF isn't know

I have just built and installed tiff-4.0.0beta6 on my Mac computer running Snow Leopard. I followed the tutorial at http://www.kyngchaos.com/macosx/build/libtiff. The install went fine but there are issues with the TIFF data type. For exmaple, when…
Ben
  • 1
  • 1
0
votes
1 answer

Fastest way to save big raw images

For a project I have to save a lot of big raw images and I am not satisfied with the speed I can achieve. images (natrual) images from camera with cfa (bayer) 12BPP; either in 2 Bytes or bitpacked (2 pixel in 3 bytes) 7920*6004 pixel resolution I…
user9400869
0
votes
0 answers

How to fix undefined reference to TIFFOpen-TIFFClose-TIFFGetFiled on Ubuntu-19.04

I have recently installed Ubuntu-19.04. I saved the the most important data from Ubuntu-18.04 as an enormous .tar file as I had some broken files on my 18.04 and transferred everything to the new 19.04 so that I had the same exact…
Emanuele
  • 2,194
  • 6
  • 32
  • 71
0
votes
0 answers

libtiff 4.0.10 is blocked by the antivirus that i cannot disable on my company laptop

I have installed miniconda and trying to install dask. This installs libtiff 4.0.10 and this is blocked by my antivirus. I cannot disable my antivirus. What can be a possible workaround.
ankshukla
  • 105
  • 2
  • 10