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

GeoTIFF libtiff.net get elevation data in c#

I am trying to use libtiff.net to read elevation data from a GeoTIFF file. So far I have mostly just been able to read metadata from the file using the example at libtiff.net's webpage. But howto read elevation data I do not understand... I tried…
Erik Thysell
  • 1,160
  • 1
  • 14
  • 31
2
votes
2 answers

Remove frames from TIFF image using libtiff.net

I have a TIF with multiple pages inside (all are old style JPEG encoded). What I want to do is to remove some of the pages from the TIF. I tried the FreeDirectory method but it seems no effect at all.
Conrad
  • 733
  • 4
  • 7
2
votes
0 answers

How to supress tesseract TIFFReadDirectory Warnings under Windows?

I am using a Windows Distribution of Tesseract and have the problem that when each picture is converted from TIFF to text I get an (oldstyle!) Windows pop-up message with "Unknown field with tag (number of tag) encountered", e.g. "Unknown field…
Dio
  • 21
  • 2
2
votes
2 answers

Large Number of 0 Values at End of Byte Array

I'm using BitMiracle's LibTiff.Net to read in a Bitmap image and return a TIFF byte[] that gets embedded in a file as a Base64String. I've noticed that the Base64 string ends up being quite a bit longer than I expect, the tail end of which is a…
Jesse Williams
  • 653
  • 7
  • 21
2
votes
1 answer

How to display CCITT Group 4 TIFF files in Silverlight?

According to How to Convert TIFF to JPG Inside Silverlight, client side, using a control or a class/function? I tried to port LibTiff.NET library to Silverlight, but failed. I will be very grateful if someone explain me how to remove unsupported by…
Snaily
  • 33
  • 7
2
votes
3 answers

32-bit Grayscale Tiff with floating point pixel values to array using LibTIFF.NET C#

I just started using LibTIFF.NET in my c# application to read Tiff images as heightmaps obtained from ArcGIS servers. All I need is to populate an array with image's pixel values for terrain generation based on smooth gradients. The image is a LZW…
TerraUnity
  • 21
  • 1
  • 5
2
votes
1 answer

libtiff.net split multipage tiff into single page tiff images

I'm trying to use LibTiff.Net to split a multipage TIFF image into single page TIFF images. I am building a TIFF splitting intermediary between two systems. I will receive the multipage TIFF image as a stream and then split it up into individual…
Steve
  • 279
  • 3
  • 13
2
votes
1 answer

LibTiff.NET Tiff to WPF Image

I'm using LibTiff.NET to read a multipage Tiff file. It's no problem to convert my Tiff into a System.Drawing.Bitmap, since it's shown on their website, but what I want is a BitmapSource or something comparable to use in WPF. Of course, I can…
Kevin Suppan
  • 232
  • 2
  • 18
2
votes
1 answer

Multi-file to Multi-page TIFF from large collection

Struggling to consolidate multiple files into multi-page TIFFs using PyLiff, Libtiff, or anything that will work. I'm consolidating thousands of files with arbitrary eight digit IDs followed by page numbers: Directory named as date…
Herbert
  • 21
  • 2
2
votes
2 answers

C# - Can I use Libtiff to output Tiff encoded JPEG (In YCbCr)

Hi I am quite new to Libtiff and image processing, and I have a question when I try to use Libtiff.net from Bitmiracle. I have some OJPEG TIFF image and want to convert them into nowadays JPEG TIFF. I achieved that by converting the source into BMP…
Mike
  • 23
  • 3
2
votes
1 answer

Saving BitmapSource as Tiff encoded JPEG using Libtiff.net

I'm trying to write a routine that will save a WPF BitmapSource as a JPEG encoded TIFF using LibTiff.net. Using the examples provided with LibTiff I came up with the following: private void SaveJpegTiff(BitmapSource source, string filename) { …
making
  • 408
  • 6
  • 21
2
votes
1 answer

LibTiff.Net convert Tiff object to byte array and back

Hi I can’t find sample for convert MULTI PAGE tiff image to byte array. For convert byte array to Tiff I use this method public static Tiff CreateTiffFromBytes(byte[] bytes) { using (var ms = new MemoryStream(bytes)) { …
whyme
  • 51
  • 3
  • 9
2
votes
2 answers

How can I write a rational tag like 200/1 using the LibTiff.Net 2.3 Library

I have no clue why this is so hard to do but I can not get LibTiff.Net 2.3 to set a rational value correctly... Over the years I have always used values like "200/1" in tiff tag number 282(XRESOLUTION) and 283(YRESOLUTION). But when using the…
Arvo Bowen
  • 4,524
  • 6
  • 51
  • 109
1
vote
0 answers

Copy tiles from one tiff to another (4-band)

I'm trying to simply use an offset to select tiles from one tiff image and write them to another image. I am using libtiff.net. Instead of each pixel having an ARGB value, there is one pixel that is alpha, then the pixel to the right of that is a…
1
vote
2 answers

Convert Tif indexed 8-bit colour to 32-bit colour

I have an indexed Tiff image which I'm reading using LibTiff.Net to produce a bitmap image of a section of the large image. I believe the Tiff will have 256 colour entries which I want to convert to 256 32-bit pixel values to be used in the output…
JWood
  • 2,804
  • 2
  • 39
  • 64
1 2
3
9 10