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
1
vote
1 answer

LibTiff.Net Tiff image = Tiff.Open(fileName, "r") always return null

My C# application has to handle TIFF files, but LibTiff.Net always returns null by this code. using BitMiracle.LibTiff.Classic; ... using (Tiff image = Tiff.Open(fileName, "r")) { if (image == null) { //Always return null. } }
1
vote
0 answers

Calculating NDVI index from Tiff images?

I have a problem with NDVI Calculating. I use LibTiff.Net and I'd like calculate NDVI from two Tiff images. I read many documents (for example: http://en.wikipedia.org/wiki/Normalized_Difference_Vegetation_Index ). I need spectral reflectance…
Molnar
  • 11
  • 1
1
vote
1 answer

Building a tiff header in libtiff.net

I am reading a CG4 (CALS Group IV bitmap) file and extracted the image data as an array of bytes. The image data is compressed using CCITT Group 4 (T.6) compression. I don't believe libtiff.net has methods to just un-compress a set of compressed…
David James Ball
  • 903
  • 10
  • 26
1
vote
0 answers

LibTiff.Net can't open stream with "w" mode

I want to use LibTiff.Net to read TIFF images from stream. The library works when I open images with under "r" mode, but when I use "w" mode, it returns null. Here is the method I used. Tiff image = Tiff.ClientOpen("in-memory", "w", memStream, new…
1
vote
1 answer

LIBTiff.net zero scanline size

I am reading a particular TIF file that reports a zero scanline size. The read operation returns null. tiff = Tiff.ClientOpen("image", Stream.Length == 0 ? "w" : "ra", Stream, new TIFFTruncStream()); tiff == null, and the log contains a Zero…
Jim
  • 14,952
  • 15
  • 80
  • 167
1
vote
1 answer

LibTiff.net Not able to update EXIF_USERCOMMENT field

I want to simply update the EXIF_USERCOMMENT field on a tif image I am creating. The call to SetField fails. Not sure what I'm doing wrong. Here is my over-simplistic code. Any help would be appreciated. { Tiff tiffdoc =…
1
vote
1 answer

Recreate Tiff Images From Access 2002 VBA Export

I have a set of old Access 2002 forms that a remote developer is performing an export to a flat text file using the VBA command SaveToText(). The resultant file looks something like: Version =20 VersionRequired =20 Checksum =2050894001 Begin…
dthagard
  • 823
  • 7
  • 23
1
vote
1 answer

LibTiff.NET - No access to TiffCP Namespace?? (General build issue)

Using Visual Studio 2012 I'm writing an adapter class library to make access to LibTiff.Net's TiffCP utility a little cleaner and less dependent on strings (this utility allows, among other things, a user to extract single pages from multipage tiff…
abarger
  • 599
  • 7
  • 21
1
vote
1 answer

BitMiracle ReadRGBATile the Image quality is not good

We are using BitMiracle ReadRGBATile to get a tile of a multi page tiff file to bitmap. We have the following problems 1. The image quality is not good (comparing to the same image opened in Autocad). 2. Black pixels added to fill at the right and…
Razack
  • 1,826
  • 2
  • 16
  • 37
1
vote
2 answers

How to disable warnings messages displayed on console using LibTiff c#

I need help to stop annoying warnings displayed on my console . I'm getting the following warnings using an application that detects corrupted images . The application works as expected but these messages appear. ReadDirectory: Warning, C:\find…
1
vote
0 answers

Get Pages from MultiPage TIFF

I have a TIFF file that shows 5 pages when opened in Microsoft Document Imaging. I am trying to extract the 5 pages programmatically and return them in a Lis. The first page has an 8 bpp indexed format and the last four pages have a 24 bit color…
Tom Bean
  • 11
  • 1
1
vote
1 answer

Is there any way to create multipage TIFF file with OJPEG (TIFFTAG_COMPRESSION = 6) compression using .NET?

I need to create multipage TIFF file with OJPEG(Old-style JPEG) compression from single page tiffs with the same compression scheme. I understand that this type of compression is not widely used anymore, but my customers deal with Microsoft Office…
Qué Padre
  • 2,005
  • 3
  • 24
  • 39
1
vote
1 answer

libtiff.net can't read jpeg compressed file

I've got a multipage tiff using jpeg compression. When opening the file via libtiff.net I get following error message: JPEGPreDecode: JPEG strip/tile size exceeds expected dimensions, expected 1164x1, got 1164x826. The image processing fails. The…
sqltobi
  • 137
  • 6
1
vote
1 answer

Converting black/white win 32 bitmap to TIFF using LibTiff.net

I'm observing "mirroring" effect when I process image that comes from a scanner through libtiff.net. Here is my code: public static byte[] GetTiffImageBytes(byte[] win32Bitmap, WinApi.BITMAPINFOHEADER infoHeader) { try { using (var…
katit
  • 17,375
  • 35
  • 128
  • 256
1
vote
1 answer

TiffCP called from c#

I want to use TiffCP utility to split a multipage TIFF into single page TIFF's. I have this working by looping through the pages and calling the following code : string[] Spltarguments = { @"c:\multipagetif.tif," + PageToProcess, …
John
  • 189
  • 1
  • 10