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

Reading RGB values of a pixel with LibTiff - C#

I want to read RGB values of a pixel in C#, I tried using following code found here. int[] raster = new int[height*width]; var b = tiffreader.ReadRGBAImage(width, height, raster); for (int i = 0; i < width;…
Manikanta
  • 223
  • 3
  • 18
3
votes
0 answers

how to write jpegs to tiff (using libtiff?)

im trying to write a list of bitmaps to a tif in standard .net code, the tif becomes a huge file, which i understand is due to the fact that it does not support jpeg compression research shows that libtiff should be able to handle that, though i…
3
votes
1 answer

How to load a part of a TIFF image without loading whole image into memory?

How to load a part of a *.tif image without loading this image into memory. I have to work with big TIFF files. (> 4 GB). I tried to read this file using BinaryReader, and using BitMiracle.LibTiff.Classic to convert bytes into image. But I didn't…
Alexey Gapon
  • 73
  • 2
  • 11
3
votes
2 answers

Updating Tags in an Existing Image with LibTiff.Net duplicates directory

I'm trying to change the values of a few custom ASCII tags in an existing TIFF image, as shown in the sample at http://bitmiracle.com/libtiff/help/add-custom-tiff-tags-to-an-existing-tiff-image.aspx. The changes essentially involve adding to the…
3
votes
2 answers

Libtiff - Different BitsPerSample - valid or buggy tiff tags?

We've come across some TIFF images that are type 6 OJPEG compressed, many have the same BitsPerSample of "8 8 8" and work fine. However, now and then we see ones that have a BitsPerSample value of say "8 25608 0". I'm wondering if this is even…
Simon
  • 31
  • 3
3
votes
1 answer

Convert Byte Array Tiff To Byte Array Jpeg

How can I convert a byte array from tiff image to a byte array of jpg? I have the byte array of Tiff image from the web, then how can i use it as jpg without writing a new file?
roybalderama
  • 1,650
  • 21
  • 38
2
votes
1 answer

LibTiff.NET append mode bug?

I've started using LibTiff.NET for writing tiff IPTC tags lately and discovered strange behavior on some files that i have here. I'm using sample code that ships with LibTiff.NET binaries, and it works fine with most of the images, but some files…
cookieMonster
  • 508
  • 6
  • 15
2
votes
1 answer

How can I get the StripOffsets tag to stay the same when using the LibTiff.Net 2.3 library?

I have an original image that has a tag StripOffsets = 768. When I edit the image in memory and then write it back to a file I try to specifically set the StripOffsets tag manually to the same value of the original which is 768 (using the following…
Arvo Bowen
  • 4,524
  • 6
  • 51
  • 109
2
votes
2 answers

What's the difference in a multi-strip TIFF and a single-strip TIFF when using the LibTiff.Net 2.3 library

When I'm using the LibTiff.Net 2.3 library I'm confused as to why I would ever want to save as a multi-strip TIFF image. Why not just always use the one big chunk (single-strip) rather then all the tiny chunks (multi-strip)? I think the…
Arvo Bowen
  • 4,524
  • 6
  • 51
  • 109
2
votes
1 answer

Version of Windows Imaging Component

How can I check what version of Windows Imaging Component is installed on a Windows machine? I suspect the Windows 2008 Servers used in Azure do not have the same version that I have on my Windows 7 development machine. I just want to verify that as…
Krip
  • 854
  • 1
  • 7
  • 15
2
votes
1 answer

Converting TIFF to JPEG using .NET

I need to convert a TIFF to JPEG using .NET. I have already done this succesfully using Windows 7 with a simple Bitmap.Save(). But it seems that this doesn't work on Windows XP (Windows 7 has more complete support for TIFF images). I saw that there…
FrioneL
  • 943
  • 2
  • 13
  • 19
2
votes
1 answer

How to use Bit Miracle LibTiff.Net to write the image to a MemoryStream

I received a Image compressed using CCITTFaxDecode. So I used LibTiff.Net from Bit Miracle to be able to convert the image to any format. I need to write the decompressed image to a MemoryStream. I used a code example from another thread and I was…
Michael Hidalgo
  • 197
  • 3
  • 13
2
votes
1 answer

Remove/Delete Page from multipage TIFF file

I need to delete a page from a multipaged TIFF file. I am currently working in .NET but can move to another language if some one knows how to do it in that language. The page would be either the second to last, or the last page in the file. And I…
keepitreall89
  • 1,190
  • 2
  • 14
  • 28
2
votes
0 answers

Obtain the column value from geotiff raster file

I am using libtiff.net, and my geotiff file has exactly this format after being converted to ASCII Gridded XYZ ( via gdal_translate -of XYZ function). So far I am following the…
Graviton
  • 81,782
  • 146
  • 424
  • 602
2
votes
1 answer

Reading 32-bit grayscale Tiff using Libtiff.Net

I've tried to read a 32-bit grayscale tiff file which each pixel in the image contains a floating point number. But during the reading process, the buffer array contains 4 values for each pixel. For instance [ pixel value = 43.0 --> byte values for…
Nasser Tahani
  • 725
  • 12
  • 33
1
2
3
9 10