tiff

What is the best web viewable format to save a TIF with a 1 bit depth?

I want to convert tif to an image type that is viewable in a web page. The tifs are black and white so jpg does not work well at all and end up even larger. Here are some tests I have made so far using C# and Image.Save to do the conversion: Orignal tif is 7KB (bit depth: 1). Converted to: JPG: 101KB (bit depth: 24) BMP: 256KB (bit...

Opening, Rotating, and Storing Tiff Images In a MySQL Database Blob Column

My problem is rather straight-forward: Retrieve an image from a MySQL database (currently stored as binary data in a blob column) Rotate that image 90 degrees (using PHP's imagerotate) Store the image back in the database with that rotation changes applied. I'm having trouble finding functions that will let me save the image as a da...

PDF to TIFF free library in Windows?

Hey guys, i've got a hundred pages long high quality PDF (66MB) that needs to be converted to TIFF format (300 dpi, as high quality as possible :P). I've tried Imagemagick/ghostscript, jpedal, Poppler, XPDF but they all produce different results due to the strange gradient of the PDF itself (blame the designers) and some actually take ...

Copy EXIF Metadata from TIF to JPEG in C# / VB.NET

Hello! I would really appreciate if you could shed light on this problem. I have 2 images, one was created from TIF file with metadata, the other is an in-memory image that will be saved as jpeg. Then I use this routine to transfer exif metadata from first image to the second one (that is from the one created from tif file to the in-memo...

Tiff Analyzer

I am writing a program to convert some data, mainly a bunch of Tiff images. Some of the Tiffs seems to have a minor problem with them. They show up fine in some viewers (Irfanview, client's old system) but not in others (Client's new system, Window's picture and fax viewer). I have manually looked at the binary data and all the tags s...

Porting pat2Pdf to C# - Tiff Library? PDF Conversion?

I'm looking to port Oren Tirosh and Thomas Boege's excellent patent2pdf script (http://www.tothink.com/pat2pdf/pat2pdf) into a few languages, the first one being C#, so that it can more easily utilize it in my school research and so I can use it if I build other applications. The script requires an http fetcher and some libraries to man...

Checksum for multipage tiff document

I want to calculate the checksum for a large tiff file that might not fit in memory. Will I get a reliable value if I instead calculate the checksum of every page and then calculate the checksum of the array of page checksums or will I run into a mathematical problem that I am not seeing and the only correct way to do it is to in fact wo...

Does System.Windows.Media.Imaging use DirectX (like WPF) or GDI+?

First I used SSRS to render a TIFF document and found out although it is possible to pass colour depth parameter to SSRS 2005 or 2008, it discards it and always generates a 24bpp file. Without luck, got this 24bpp file generated by SSRS render method, loaded it on a System.Drawing.Bitmap object and successfully scaled it to 1728 pixels b...

Internet explorer and serving files with asp.net httphandlers

So... I have an http handler which serves documents. The response contentType is correctly set but the url of the handler does not have an extension i.e. pdf. It looks like this: http://mysite/handler.ashx?id=123&locale=123 When I visit this url in firefox/chrome etc (i.e. the decent browsers) all is well (the browser correctly s...

Need C# function to convert grayscale TIFF to black & white (monochrome/1BPP) TIFF

I need a C# function that will take a Byte[] of an 8 bit grayscale TIFF, and return a Byte[] of a 1 bit (black & white) TIFF. I'm fairly new to working with TIFFs, but the general idea is that we need to convert them from grayscale or color to black and white/monochrome/binary image format. We receive the images via a WCF as a Byte[], ...

How Do I Create a System.Windows.Media.ImageSource From a Byte Array?

How do I create a System.Windows.Media.ImageSource from a byte array? I have a byte array, containing the exact and complete file contents of a TIFF image file. I need to display this on the screen, and I have no idea where to even start. Supposedly, it can be done (according to my boss, our dev team has done it in the past, but no...

Store tiff images in SQL Server or file system?

Our system needs to store tiff images of about 3k each in size. We received about 300 at a time, and need to process them pretty quickly. Later, once we have received say around 100,000 of these, there are transferred off to another archival system or purged. Would storing the images in SQL Server or the file system give us better per...

Stream (and convert?) multi-page TIFF using ASP.NET

I have built a simple image viewer in .NET and have the requirement to display multi-frame TIFF images in the browser. Presently, I have a (ashx) handler setup to stream back JPEGs that are co-mingled in the same database as the multi-frame TIFF's and it's worth mentioning that this handler will also return the first frame of the TIFF fi...

Working with multi-page images in an NSImage

I'm working on an image viewer application (OSX) and currently it can load and view images, but I need to be able to view multi-page PDFs and TIFFs. I'll have next/previous page buttons, etc. Now, with PDF, I expect to use an NSPDFImageRep. This will let me set the current page and draw the current page etc. However, I don't see an NST...

Having an image file buffer in memory, what is the fastest way to create its thumbnail?

Trying to create a an image acquiring application optimized for a fast scanner (which can provide up to 6 compressed images [color+gray+binary][front+rear] for each paper at speed of 150 ppm) I have some speed issues. Using TWAIN technology and memory buffer transfer mode (TWSX_MEMORY) I receive image buffer (as JPEG or TIFF file loade...

Extracting Spot Color equivalents from TIFF

I'm trying to get the Spot color information from a TIFF file, it normally shows up under 'channels' in Photoshop. Each extra channel would have a name, which is usually a Pantone swatch name, and a CMYK equivalent. So far, I'm getting the TIFFTAG_PHOTOSHOP with libtiff, and stepping through the blocks within. I'm finding the IRB WORD...

Edit multipage TIFF image using System.Drawing

I'mt tring to edit multipage tiff by creating Graphics from the image, but i encountered the error message: “A Graphics object cannot be created from an image that has an indexed pixel format.” How can i edit multipage tiff? ...

How to extract text from tiff using RecoStar.TIFFiFilter.IFilter?

If you use the RecoStar.TIFFiFilter for extracting the text from tiff file then This IFilter object is not returning CHUNKSTATE.CHUNK_TEXT in the GetChunk method. ...

How to export a Microsoft Project file (mpp) to tif (tiff) without popup save file dialog?

The customer wanna preview mpp content without open Project Professional.So I decide to convert mpp file to image file. I already know that the Project Application interface has a method named EditCopyPicture can output to GIF,but when mpp is very large,gif doesnt look very vell.My boss tell me output to tif is a good solution. I found...

How do I display tiff files on Silverlight?

Hi there, How do I display tiff files on a Silverlight application, I can display any image format except tiff, can anyone help me, thanks. ...