tiff

reading 16-bit greyscale TIFF

I'm trying to read a 16-bit greyscale TIFF file (BitsPerSample=16) using a small C program to convert into an array of floating point numbers for further analysis. The pixel data are, according to the header information, in a single strip of 2048x2048 pixels. Encoding is little-endian. With that header information, I was expecting to b...

Can Graphics.DrawImage unintentionally trim an image?

I'm using code that takes a bitmap and converts it to 24 BPP so that I can use it in a program that specifically requires that file format. Here is the code: using (Bitmap tempImage = new Bitmap(pageToScan.FullPath)) { if (tempImage.PixelFormat != System.Drawing.Imaging.PixelFormat.Format24bppRgb) { using (Bitmap tem...

Good browser plugin to display TIFFs

Hi, I'm trying to develop a web version of an app we have that stores document images. However, a good portion of the images are tiff's, which IE can't natively display. Can anyone recommend a good plugin that will display them properly? ...

C# (or VB6) Convert Word doc to Tiff

Hi all, I'm working on a VB6 application that is used by over a hundred users. It generates a Word document, then saves a TIFF image of the document in a database. Currently, it simply sets the printer to Microsoft Office Document Image Writer, "prints" the document to a set location, then imports the resulting TIFF file into the data...

How to merge tiff images with Delphi?

I have 4 small tiff images and I would like to generate a big one by merging the 4 single one. Does anyone know how to do it directly with Delphi or some good component that could do it? ...

How do you specify the specific Group 3 tiff compression?

Group 3 compress has 2 variations (Group 3 1D and Group 3 2D). When saving an image in Tiff format, there is only one option for Group 3 in the EncoderValue enumeration. Is there a separate parameter that controls this? ...

.NET TIFF file: RGB to CMYK conversion possible without a third party library?

Following up my previous question: if and how would it be possible to take RGB based TIFF files and convert them over to CMYK with standard .NET (3.5) functionality? Is that possible at all? ...

Best languages/frameworks for imaging Linux app

Hello all. I'm looking for the best tool/language/library/framework to develop a document scanning/imaging/indexing application that must run on KDE/Linux. The application must provide the following functionality: 1) Document scanning (simple and multipage) in B/W, save the scanned images in TIFF format with CCITT Group 4 compression. ...

How can I measure the quality of a fax file?

Hi! I'm trying to make a tool that can measure the quality of a fax file, comparing the received one with the one sent. I tried Phase_Correlation software, in order to see if the images are similar... but it's not enough. My purpose is to evaluate if the fax is legible after the transmission. Any ideas? Is there any way of comparing two...

Java API to tag TIFF files

Is there an open source Java API to tag TIFF image files? ...

How to serve high-resolution imagery in a low-resolution form using C#

Trying to use 300dpi tif images for display on the web. At the moment, when the user uploads an image, I am dynamically creating a thumbnail. If a page is created referencing the high-res image with a width of 500x500px, can I use the same functionality to convert to a gif/jpg on the fly. What is the impending resolution of the jpg that ...

How do I convert multiple png images to a single tiff file

I have a byte array of several images in the png format. I have to convert this to a tiff file and then into the corresponding byte array. This tiff file will hold multiple images. I have searced a lot, but I haven't been successful. The catch is. i have to do this in java only!! :) Can anyone provide some insight as regards my issue? ...

Read/Write Tiffs in Java

Any ideas for open-source libraries, with Apache or similar license, for reading and writing TIFF files in Java 5 (Preferably with the AWT image-processing libraries, including ImageIO.) I'm aware that Java 6 is supposed to support TIFF. I know about Sun's JAI implementation, but that license doesn't work for the company I work at;...

Unable to retrieve TIFF pages from TiffBitmapDecoder.Frames -- all frames are page 1

I'm trying to convert a multipage tiff image into a multipage XPS document. The problem I'm having is with the TiffBitmapDecoder and its BitmapFrames. Here's the code: private static void ToXpsDocument(string imageName, string xpsName) { using (var p = Package.Open(xpsName)) { PackageStore.AddPackage(new Uri("pack://th...

Change tiff pixel aspect ratio to square

I'm trying to perform barcode recognition on a multipage tiff file. But the tiff file is coming to me from a fax server (which I don't have control over) that saves the tiff with a non-square pixel aspect ratio. This is causing the image to be badly squashed due to the aspect ratio. I need to convert the tiff to a square pixel aspect rat...

Java API to convert JPEG to TIFF

I am looking at java APIs to convert JPEG file streams to TIFF files. I looked at the JAI but did not find something similar to what i am looking at. Can someone point me to a good API which does this ? ...

Java based OCR SDK/API

Are there any good OCR (optical character recognition) SDK or APIs in Java which will be able to convert TIFF files to txt files (or even html is good enough) with some sort of format retention? The challenge is to read a typical news magazine article and know that it has a header and certain number of paragraphs and pictures. I am Ok w...

BitBlt Performance

I have a function that splits a multipage tiff into single pages and it uses the windows BitBlt function. In terms of performance, would the video card have any influence in doing the split? Would it be worth using a straight C/C++ library instead? ...

TIFF image file format

Hello, I am working on TIFF images for image compression. I want to know how is the actual raw image data i.e. R,G,B components organised/stored in the TIFF file. Is it stored as G0B0R0G1B1R1... (1 byte each for each color component, all components intereleaved) or is it some other way viz. planar format or something else? Thank...

How do I take a DIB and convert it to a tif using libtiff

I am trying to read in a scanned image and compress it from a DIB in memory into a TIF file. I am using the libtiff library and have found a couple examples online but none of them really do as I need them to. I need to take the image from the DIB and turn it into a B&W image. Here is the code I have modified from an online example. It ...