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

How to use LibTiff.NET Tiff2Pdf in .NET 6

I want to provide support to convert single-page and multi-page tiff files into PDFs. There is an executable in Bit Miracle's LibTiff.NET called Tiff2Pdf. How do I use Tiff2Pdf in my application to convert tiff data stream (not a file) into a pdf…
usagibear
  • 303
  • 3
  • 12
1
vote
2 answers

Writing RGB values of the TIFF image with LibTiff

I'm trying to create a colormap (not sure about the right term) of the TIFF image - from this kind of image to such, and as i understand i need to modify all RGB values accordingly. I'm having trouble with modifying existing image with Libtiff.net…
1
vote
1 answer

Using LibTiff.Net to inject tags inside TiffTag.IMAGEDESCRIPTION damages file

We are trying to inject a TimestampAnnotation into the StructuredAnnotations section of an OME-Tiff file. I'm getting the annotation in there correctly, but when I try to reload the tiff, all the images are damaged. Is there an easier way to do…
1
vote
1 answer

How can I get the point pixel values to an array from Tiff using C#?

I want to read the pixel values from Tiff images. I have seen a similar question, but I still have no idea how to deal with normal Tiff images.
isana
  • 11
  • 2
1
vote
0 answers

Writing multi-page Big Tiff saving in C++

I am writing an application to save multi-page tiff saving with big tiff library and I have two problems with the big tiff library: So far I am able to save some images in a stack, but with the image viewer I can only see 3 or 4 pages even though…
takanoha
  • 183
  • 4
  • 17
1
vote
2 answers

Could not install package 'BitMiracle.LibTiff.NET 2.4.633'...project that targets '.NETFramework,Version=v3.5'

Trying to upgrade BitMiracle.LibTiff.NET via NuGet from v2.4.633 to v2.4.626 Error: Could not install package 'BitMiracle.LibTiff.NET 2.4.633'. You are trying to install this package into a project that targets '.NETFramework,Version=v3.5', but the…
Pete -S-
  • 542
  • 5
  • 13
1
vote
1 answer

Saving colorindexed Tiff using LibTiff.net throws exception

I'm trying to save a colorindexed Bitmap to Tiff using Libtiff.net. But it throws an OutOfRangeException: The exception occurs if i set and indexed colormap: internal static bool SaveColorPalette(Bitmap source, Tiff destTiff, int…
Fred
  • 162
  • 9
1
vote
1 answer

Drop a Page/Layer from Tiff/SVS File

Is there an easy way to remove/drop a layer/page/directory from a tiff/svs file in C#? I am looking to remove a specific page from a series of tiff/svs files that is simple. It would be nice if it were something like tifFile.dropLayer(0) rather…
Branco
  • 191
  • 1
  • 18
1
vote
1 answer

How to create world file in C# from a tiff image?

Is there any simple way to extract a world file in C# from a tiff Image? I have a tiff image and I need to create a world file without any third party library.
e.s
  • 214
  • 3
  • 16
1
vote
1 answer

LibTiff.Net color image conversion

I am using Bit Miracle LibTiff.Net. I cannot find any sample code to take a 32bpp ARGB colour image and write the bitmap to a TIFF using this library. Has anyone else attempted this? Here is my sample code. It produces a file, but it cannot be…
Jim
  • 14,952
  • 15
  • 80
  • 167
1
vote
1 answer

TiffCP Process won't close

I've created a windows service project that will use the TiffCP exe in order to split any tiff files its found into multiple tiff files. I'm using the code that was given as an example on the site: public static class SplitTiffImage { public…
DrivenTooFar
  • 110
  • 1
  • 1
  • 11
1
vote
0 answers

Convert TIFF to Bitmap using scanlines

I am trying to use libtiffdotnet to work with TIFF files. I need to convert the TIF to System.Bitmap. There is a sample in the documentation on how it can be done. But this method takes long time on large TIFF files. So I am trying to obtain the…
user3868244
  • 121
  • 2
  • 12
1
vote
1 answer

LibTiff.net isn't setting the Subject tag

I'm trying to mimic some production code to generate Tiffs with a subject for testing purposes (IE in windows, right click, go to properties and the details tab there is a subject). We place some text we need to reference later in the subject…
JasonAUnrein
  • 146
  • 6
1
vote
0 answers

TIFF 204x98 DPI screen dimensions

i've TIFF page (Fax low resolution G4 CCITT.6) with this properties: H:1146 W:1728 HResolution: 204 DPI VResolution: 98 DPI Bit : 1 When i view this in tiff viewer, the image is ok. When i convert this in JPEG the image is stretched. Only "Image &…
davymartu
  • 1,393
  • 3
  • 15
  • 34
1
vote
0 answers

libtiff.net Group3Opt.FILLBITS is not filling to byte boundary

I'm using the libtiff.net library to encode bytes from a twain complaint scanner with the below tags. Scanner Settings _twain32.SetCap(TwCap.IUnits, TwUnits.Inches); _twain32.SetCap(TwCap.IPixelType, TwPixelType.BW); _twain32.SetCap(TwCap.BitDepth,…
javaMike
  • 11
  • 3