libtiff

Installing LibTiff to Visual Studio 2010 [duplicate]

爱⌒轻易说出口 提交于 2019-12-04 01:50:47
问题 This question already has an answer here : Closed 7 years ago . Possible Duplicate: Using LibTiff in Visual Studio 2010 I have been trying to work with libtiff library but I couldnt get it working. I looked up the installation notes but still I couldn't manage to build it. I used setup but since it fails to find lots of header files when I try to use it. Is there any step by step guide that you could recommend explaining where to put source files or how to include? I am searching and trying

Adding custom tags to a TIFF file

空扰寡人 提交于 2019-12-03 17:04:29
I’m quite new to libtiff, but I’ve managed to get tiff files saving and opening without much trouble. Now, I’m being ambitious and trying to add custom tags into my files. I’ve read the documentation ( see here ) and written some test code which compiles without errors, but fails at runtime with an access violation at the first call to TIFFSetField that features a custom field (calls to TIFFSetField with standard fields are fine). My test code follows: just under 100 lines, with the only external dependency (besides libtiff) being my code to open a test image from a .pgm file. Can anyone point

How do I write a 1bpp tiff with libtiff on iOS?

…衆ロ難τιáo~ 提交于 2019-12-03 09:03:29
I'm trying to write a UIImage out as a tiff using libtiff. The problem is that even though I'm writing it as 1 bit per pixel, the files are still coming out in the 2-5MB range when I'm expecting something more like 100k or less. Here's what I've got. - (void) convertUIImage:(UIImage *)uiImage toTiff:(NSString *)file withThreshold:(float)threshold { TIFF *tiff; if ((tiff = TIFFOpen([file UTF8String], "w")) == NULL) { [[[UIAlertView alloc] initWithTitle:@"Error" message:[NSString stringWithFormat:@"Unable to write to file %@.", file] delegate:nil cancelButtonTitle:nil otherButtonTitles:@"OK",

In a TIFF create a Sub IFD with thumbnail (libtiff)

a 夏天 提交于 2019-12-03 06:43:25
I know thumbnail.c includes some code that creates a thumbnail and places it in a sub IDF, but there is a lot going on in that code (generating the thumbnail, applying a contrast curve, etc.) and I am having difficulty reproducing just writing a thumbnail. Google has not been any help either. My question is, after I have opened an output file and have a TIFF*, I have my thumbnail data all ready to go (as well as my main image data), how do I add them in such a way that the thumbnail is in a sub IFD of the main image IFD? So after digging around through the libtiff source code for a while, I

How to make libtiff for an Xcode project and an iOS application?

梦想的初衷 提交于 2019-12-02 09:25:16
I have been searching up and down stackoverflow and Google for the correct way to compile and add the libtiff library to my existing iOS project in Xcode. What I have done so far: EDIT: I have downloaded libtiff to my Mac after deciding to follow this advice on stackoverflow . I used version 3.9.6 and built it like in this tutorial and its sequel about SDK5. There, in the comments, I found a script I could adapt . I have added the resulting "dependencies" folder to my Xcode project, almost like rakmoh suggested. However, I got linker errors as soon as I #include tiffio.h : Undefined symbols

Installing LibTiff to Visual Studio 2010 [duplicate]

 ̄綄美尐妖づ 提交于 2019-12-01 10:57:21
Possible Duplicate: Using LibTiff in Visual Studio 2010 I have been trying to work with libtiff library but I couldnt get it working. I looked up the installation notes but still I couldn't manage to build it. I used setup but since it fails to find lots of header files when I try to use it. Is there any step by step guide that you could recommend explaining where to put source files or how to include? I am searching and trying for hours, still couldnt find anything. The GnuWin32 page you link to seems to be mostly about building LibTIFF with GCC (CygWin or Mingw). There is a section on

TIFF images: How 16bits-RGBA image pixels are interlaced?

柔情痞子 提交于 2019-12-01 03:30:03
问题 I'm trying to deal with 16-bits per channel RGBA TIFF images through C language, I could not find a lot of information about 16-bits images in the specifications. In case of a 8-bits per channel RGBA image, I understand that a pixel is stored as a uint32, and can be deinterlaced by grouping the 32 bits into 4 groups (R,G,B,A) of 8 bits. Then to deal with 8-bits per channel RGBA images, I'm doing the following (see also enclosed source code here): I store the image data as a uint32 tab (using

C++ LibTiff - Read and Save file from and to Memory

╄→гoц情女王★ 提交于 2019-11-30 11:32:43
Is there a way in LibTiff how I can read a file from Memory and save it to Memory? I don't want to save the image to the disc first, before opening it with an other library... Thanks so much! KSletmoe I know this is an old question, but I am going to post an easier, more up-to-date answer for those like myself who need this information for more recent versions of libtiff. In the newest version of libtiff (4.0.2), and even the past few versions I believe (check for your specific version number), there is an include file called tiffio.hxx. It has two extern functions for reading/writing to

C++ LibTiff - Read and Save file from and to Memory

雨燕双飞 提交于 2019-11-29 17:13:40
问题 Is there a way in LibTiff how I can read a file from Memory and save it to Memory? I don't want to save the image to the disc first, before opening it with an other library... Thanks so much! 回答1: I know this is an old question, but I am going to post an easier, more up-to-date answer for those like myself who need this information for more recent versions of libtiff. In the newest version of libtiff (4.0.2), and even the past few versions I believe (check for your specific version number),

Handling Group4 TIFF images in python

╄→尐↘猪︶ㄣ 提交于 2019-11-28 08:24:31
问题 PIL doesn't natively support G4 images, is there some other python package that does? I need to read multi-page TIFF images and pull convert them into gif/png on the fly to serve up in a web page. (I'm not converting them all on the fly, but cherry picking them for display). I've considered using ImageMagick which has that conversion ability, but I'd like to be able to reach into the TIFF files and see what is inside them for indexing. 回答1: See this post about a patch against PIL, this