Questions tagged [libtiff.net]

The open-source .NET version of libtiff.

Project homepage

The .NET version of original libtiff library.

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

LibTiff.Net is freely available for all uses under the New BSD license.

Features:

  • Free for use in any library, service or application
  • Full open source
  • Can be used as dll or included in your application source code.
  • 100% managed, without unsafe blocks
  • Can be used in Silverlight
  • No external dependencies
137 questions
13
votes
4 answers

Open huge TIF in .NET and copy parts to new image

I'm looking for a library that can open and copy sections of a large TIFF file. I've looked at LibTiff.Net which opens the file very quickly but it doesn't have any functions for cropping or copying sections of the image. My image is 100,000 x…
JWood
  • 2,804
  • 2
  • 39
  • 64
11
votes
3 answers

Using LibTiff from C# (to access tiled TIFF images)

I'd like to use LibTiff to access very large TIFF files. I need functions like multiple pages and tiles, and so LibTiff seems to be the right way to go. Can anyone help me on how to use LibTiff from C#? I've found some links (like blog.bee-ee which…
Adriaan
  • 3,282
  • 1
  • 23
  • 31
8
votes
3 answers

More effective lossless compression for TIFF

I am trying to archive TIFF images in a database, and I would like to compress the images as much as possible, even at the cost of higher CPU usage and high memory. In order to test the compressions available in LibTiff.NET, I used the following…
Zev Spitz
  • 13,950
  • 6
  • 64
  • 136
6
votes
2 answers

What are the corresponding fields to set in libtiff or libgeotiff, given a minimal ESRI ASCII file?

I have an ESRI ASCII file of the form: ncols 5 nrows 4 xllcorner 0 yllcorner 0 cellsize 10 NODATA_value -9999 25.4 26.1 27 28.6 27.7 25 26 26.4 27.9 27.4 25.1 25.8 26.8 28.6 27.6 27.5 28 27.7 30.6 28.3 And I need…
Graviton
  • 81,782
  • 146
  • 424
  • 602
5
votes
3 answers

How can I delete tiff tags using the LibTiff.Net 2.3 library

I can't seem to find any documentation of how to delete a tiff tag using the LibTiff.Net library. I love the library but this one method is important to what I need to do. At one point I was hoping that I could just set a tag and set it's value to…
Arvo Bowen
  • 4,524
  • 6
  • 51
  • 109
5
votes
3 answers

How to display TIFF (in form of Byte[]) on Silverlight Image control

I created a window service to put all of my TIFF files into database and stored them as Byte[]. Now I want to be able to display them through Silverlight Image control So i use the Converter during binding XAML in order to convert the Byte[] to…
Tai
  • 417
  • 1
  • 6
  • 15
5
votes
2 answers

Create Geotiff using "LibTiff.Net", and add geographic information

I'm trying to create a geotiff (elevation DEM data) file by using Libtiff.Net. The problem is that I have never succeeded to add the following two tags: TiffTag.GEOTIFF_MODELTIEPOINTTAG TiffTag.GEOTIFF_MODELPIXELSCALETA To add the tag, I wrote the…
Nazonokaijin
  • 121
  • 10
5
votes
1 answer

How to split multipage Tiff using LibTiff.Net

In the LibTiff.Net documentation I've found that it is possible to get a specific page of the Tiff document. But, if it is possible to split multipage Tiff (using LibTiff.Net) without knowing how many pages are there? How? Using this example it…
1gn1ter
  • 1,414
  • 2
  • 22
  • 47
4
votes
2 answers

SkiaSharp Tiff support

Currently, SkiaSharp doesn't support tiff images. (It supports jpg, gif, bmp, png, and a few others.) How can you convert a tiff image into a SKBitmap object? One idea: Perhaps there's an efficient way to convert a tiff stream > png stream >…
Doug S
  • 10,146
  • 3
  • 40
  • 45
4
votes
1 answer

Efficient way to write very large number of TIFF pages using libtiff.net

I'm using the following code to write a sequence of 16-bit grayscale images (empty array for the purpose of this question) to a multi-page TIFF : int numberOfPages = 1000; int width = 256; int height = 256; string fileName = "test.tif"; ushort[]…
getter1
  • 43
  • 1
  • 5
4
votes
2 answers

Use libtiff in C# to convert from one TIFF format to another

I have a TIFF using JPEG format the WPF / C# can not handle via TiffBitmapDecoder. Our clients use the file format and our current C++ and Java code handles it. I need to convert this to a format I can display using TiffBitmapDecoder or standard…
Kevin
  • 51
  • 1
  • 3
4
votes
1 answer

Create a Bigtiff (>4GB) File with Bitmiracle Libtiff.net

First I want to thank Bitmiracle for this great lib. Even while creating very big files, the memory footprint is very low. A few days ago I ran into a problem where I wanted to create a tiff file bigger than 4GB. I created the tiled tiff file…
Andreas
  • 3,843
  • 3
  • 40
  • 53
3
votes
2 answers

How to create a TIFF file that's readable by tesseract OCR?

I want to let tesseract ORC run over an image file, to scan the content. The problem seems to be that tesseract not only requires TIFF, but it also requires the tiff file to be in a certain format. With just a normal tiff file, I…
Stefan Steiger
  • 78,642
  • 66
  • 377
  • 442
3
votes
1 answer

LibTiff C# - Getting coordinates

I am using the LibTiff.NET library to load GeoTiff data in C# (inside Unity). **NOTE - I looked at GDAL also, but faced similar issues as outlined below, and would much prefer to use LibTiff if possible. I would ultimately like to be able to take a…
FacePuncher7
  • 139
  • 7
3
votes
1 answer

Tiff loaded from Stream via LibTiff.Net has no field values

My application has to handle TIFF files that are stored in a MemoryStream, but LibTiff.Net always returns null for the field values. MemoryStream ms = new MemoryStream(); FileStream fs = new FileStream("testfile.tif",…
Alex AIT
  • 17,361
  • 3
  • 36
  • 73
1
2 3
9 10