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
0
votes
1 answer

Create a tiled Tiff using LibTiff.net

I used LibTiff.net to crop part of a tiled Tiff and export it as a tiled Tiff but encountered the problem of "can not write tiles image to a stripped image". While the "Tiff.open("out.tif","w") make a stripped image, How can I create a tiled-Tiff to…
Nasser Tahani
  • 725
  • 12
  • 33
0
votes
1 answer

BitMiracle.LibTiff.Net Converting oJPEG tiff to Bitmap results in a negative color image

I'm using the BitMiracle.LibTiff v2.4.560.0 to convert oJPEG tiffs to Bitmap. This has worked out great until just recently. A Tiff, that I tried converting, is a document with a white background and black text. After converting the tiff, the…
Shar1er80
  • 9,001
  • 2
  • 20
  • 29
0
votes
1 answer

LibTiff.net - Save Directory

I have massive tiff file that contains 8 directories (resolutions). It's also a tiled. I can cycle thru the directories and get the resolution of each. I want to save the 4th directory to a new tif file. I think it's possible but can't get my hands…
Matt
  • 169
  • 2
  • 6
0
votes
1 answer

Failing to write tiles with YCBCR photometric in Libtiff.net

I'm using Libtiff.net to write tiled images into a tiff file. It works ok if Photometric is set to RBG, but if I use YCbCr (in order to reduce file size), I get the error "Application trasferred too few scanlines". Relevant pieces of code: …
Orphuio
  • 9
  • 2
0
votes
0 answers

how to control TIFF image header's 1st IFD offset value while generating TIFF?

I would like to know is there a way to control the 4 byte data in TIFF image header which stores the 1st IFD offset value. I have a situation, when I scan three different image and store directly into file system, it comes with the value [4949 002A…
Malavan
  • 31
  • 1
  • 6
0
votes
1 answer

Why does the Tiff.Open method always return NULL and not open a tiff file?

Overview: I have an issue where 1 out of a hundred PCs just started having an issue with the LibTiff library not wanting to open ANY of my tiff images. I suspect it has to do with a dependency file that has changed. I have seen this issue before…
Arvo Bowen
  • 4,524
  • 6
  • 51
  • 109
0
votes
0 answers

Negative Grayscale values in TIFF file are white

I am using the LibTiff.NET library from BitMiracle to process some TIFF image files. I need to translate the grayscale value of each pixel according to a standardisation formula, this formula will result in negative pixel values. I changed the…
Molloch
  • 2,261
  • 4
  • 29
  • 48
0
votes
1 answer

Convert 8 bit persample to 1 bit per sample image

I have 8 bit per sample image grayscale. I want to convert it using Libtiff.net: using (Tiff input = Tiff.Open(fileIn, "r")) { using (Tiff output = Tiff.Open(fileOut, "w")) { for…
davymartu
  • 1,393
  • 3
  • 15
  • 34
0
votes
1 answer

LibTiff.net doesn't expose Tiff2Pdf?

I'm trying to move away from using a command line app to convert TIFF to PDF; in doing so, I've installed LibTiff.net and tried to convert a file using their provided example. Even using the sample exactly as they put it, it seems like I can't find…
Rein S
  • 889
  • 6
  • 18
0
votes
1 answer

Is it possible to display multi-page, multi-layer TIFF images using javascript in a webpage?

We are thinking about a library which can get a TIFF image and display each page (frame) of TIFF file in a separate canvas element. Also some pages might have layers. We want to be able to show/hide layers at user's will. It is not necessary to tell…
themehrdad
  • 169
  • 4
  • 12
0
votes
1 answer

Why won't some Tiff files load with TiffLib.NET

I am having trouble loading Tiff files in C#. I downloaded some sample tiff files and was able to load them fine, however when I attempt to load any tiff files generated from PCI Geomatica or ArcGIS, the ReadRGBAImage call fails (returns false).…
BruceDoh
  • 113
  • 6
0
votes
1 answer

Issue with Photometric Interpretation tag even after inverting the image data

Note: Giving the background of my previous question once again so as to find all the related stuff at one source. I'm capturing an image from an android mobile device and it’s in JPEG format. The image is of 72X72DPI and 24 bit. When I try to…
Harshoo
  • 3
  • 5
0
votes
1 answer

Issue with Photometric Interpretation tag

I'm capturing an image from an android mobile device and its in JPEG format. The image is of 72X72DPI and 24 bit. Now, when I try to convert this JPEG image to TIFF using LibTiff.Net and to set the tag Photometric Interpretation = 0 for MinIsWhite,…
Harshoo
  • 3
  • 5
0
votes
1 answer

libtiff.net writeScanLine returns false

I'm using libtiff.net to make a tiff from a jpeg. The problem apears when I try to write, because the tiff.writeScanLine returns false, meaning the image isn't written in the tiff. Why is this happening? And how can I figure out what's wrong? Here's…
0
votes
1 answer

Convert TIFF to 1bit

I wrote a desktop app which converts an 8bit TIFF to a 1bit but the output file cannot be opened in Photoshop (or other graphics software). What the application does is it iterates every 8 bytes (1 byte per pixel) of the original image then…
Val
  • 1,548
  • 1
  • 20
  • 36