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

Is it possible to update an existing tiff directory image

BACKGROUND: My application allows users to select which directory in a multi-page tiff they want to view and draw shapes onto. Simple shapes such as a circle or square are allowed. ISSUE: After a user has edited one of the images in my multi-page…
RDotLee
  • 1,083
  • 2
  • 15
  • 32
1
vote
1 answer

TIFF Convertion issue for Rich TIFF format

I am using LibTiff.Net to convert the TIFF images to writable bitmaps to display in my siverlight application. For the below header formats I am able to convert successfully: static byte[] tiff = new byte[] { 73, 73, 42 }; // TIFF …
1
vote
1 answer

What's the best/fastest way to get the count of tiff tags from a tif image with LibTiff.Net?

Just as stated in the title, what is the best and fastest way to get the count of tiff tags in an image? Currently the only way I know of is trying to query tags 1-65534 using the GetField() method and simply counting that way. Is there some type…
Arvo Bowen
  • 4,524
  • 6
  • 51
  • 109
1
vote
1 answer

Converting Tiff obect from BitMiracle LibTiff to NET types

On client side I have image in TIFF images with multiple pages. Firt I convert this image file to byte array and then I sent this data to web service. For converting TIFF to byte array I use method System.IO.File.ReadAllBytes. On web service side I…
whyme
  • 51
  • 3
  • 9
1
vote
1 answer

Get pages from multi tiff

NET library a retrieve count of pages in multi tiff. I use sample from http://bitmiracle.com/libtiff/help/retrieve-number-of-pages-in-tiff-image.aspx. public int GetNumberOfPages(Tiff image) { int pageCount = 0; do …
whyme
  • 51
  • 3
  • 9
1
vote
1 answer

Create Multipage-G4-TIFF with offset = 8 for first directory

I need to create a b/w, g4-compressed multipage tiff from some b/w singlepage tiff-files. The offset of the first directory needs to be 8. I'm able to create the multipage tiff, but the offset of the first directory is always greater than 8. I've…
sqltobi
  • 137
  • 6
1
vote
1 answer

Issue when trying to update tags on a tiff image

Note: When creating a new tiff image that has never been altered by the LibTiff.Net library, I can use the LibTiff.Net library to add/alter tags with no issues (the first time). After I have used the LibTiff.Net library to alter the tiff tags in…
Arvo Bowen
  • 4,524
  • 6
  • 51
  • 109
1
vote
0 answers

How to read target extent from a huge TIFF file by LibTiff.Net library

I have a big tiff file which I don't want to load it into memory one time (That will cause my application takes so many memory), I want to load target part of it one time and show this part in screen. I am trying to use LibTiff.net library for…
Cryeyes
  • 11
  • 4
0
votes
0 answers

Confidence value for libtiff

Other tools such as Tesseract return a confidence value for read text. Does Bit Miracle - libtiff offer this confidence value? Would like to be able to test document for readability - for example not blurred.
0
votes
0 answers

Use libtiff.NET to read Exif GPSIFD directory and extract GPSLatitude, GPSLongtitude and convert them to decimal values

I'm trying to read the GPSIFD directory of a .tif file, and in particular read GPSLatitude,GPSLongtitude,GPSAltitude and convert them to decimal values. So far I succeeded to read the GPSIFD, I used ReadExifDirectory to read the GPSIFD directory.…
0
votes
0 answers

Skewed Landscape TIFs from LibTiff.net

I'm using the following code to save images to JPG compressed TIFs. This works if the width of the input image is divisible by 8. If it's not, then the image will be skewed. So take 2 images: 1040x800.png 1035x800.png run them through the…
0
votes
0 answers

How to split multipage TIF into byte arrays for each page to convert TIF to PDF?

I am using Libtiff.net and PdfSharp to convert multi-page TIF to PDF. The problem I have is that I cannot appear to get the data of a current page/directory and convert it to a byte array in order to pass to XImage.FromStream(myStream). Instead, the…
usagibear
  • 303
  • 3
  • 12
0
votes
0 answers

LibTiff C# .NET 6 - trim white space of image

I was able to crop white space from images using Bitmap. However, it is not supported in platforms other than Windows (https://learn.microsoft.com/en-us/dotnet/core/compatibility/core-libraries/6.0/system-drawing-common-windows-only). I'm using…
igorjrr
  • 790
  • 1
  • 11
  • 22
0
votes
0 answers

LibTiff C# - Setting coordinates

Good day! I am using the LibTiff.NET library to load GeoTiff data in C#. I looked at GDAL, but documentation on c# not good. I read file and coordinates like that LibTiff C# - Getting coordinates then I create new *.tif with similar lat/lon ` //…
0
votes
2 answers

Split a TIFF File

I need to split TIFF file to many files (each page in a separate file). I wrote a function but splitting of a large amount of files takes time :/ Then I was searching for a library to do the split and I found the LibTiff.Net but I can't find the…
Akrem
  • 5,033
  • 8
  • 37
  • 64