tiff

File Format Conversion to TIFF. Some issues???

I'm having a proprietary image format SNG( a proprietary format) which is having a countinous array of Image data along with Image meta information in seperate HDR file. Now I need to convert this SNG format to a Standard TIFF 6.0 Format. So I studied the TIFF format i.e. about its Header, Image File Directories( IFD's) and Stripped Ima...

How can I create an Image in GDI+ from a Base64-Encoded string in C++?

I have an application, currently written in C#, which can take a Base64-encoded string and turn it into an Image (a TIFF image in this case), and vice versa. In C# this is actually pretty simple. private byte[] ImageToByteArray(Image img) { MemoryStream ms = new MemoryStream(); img.Save(ms, System.Drawing.Imaging...

How to create a 2 bit gif from tiff file in dotnet

Hi, I have used Bitmap class to convert tiff to Gif but it couldn't make the image 2 bit possible for have less size. Notice that bitmap class could create images with this pixel format : 1, 4, 8, 16, 32, 64 (bits) But my need is 2 bit. Unfortunately Gdi+ do not support 2bpp. Is there any source or library to do that? ...

I need to view a Multipage TIFF in a WPF application

I need to view a multipage tiff with WPF. I currently have the following: <FlowDocumentReader> <FlowDocument> <BlockUIContainer> <Image x:Name="DocImg" Source="test1752158790.tif" /> </BlockUIContainer> </FlowDocument> </FlowDocumentReader> I can only view the first page. Is there a way ...

Separation of multipage tiff with compression "CCITT T.6" very slow

I need to separate multiframe tiff files, and use the following method: public static Image[] GetFrames(Image sourceImage) { Guid objGuid = sourceImage.FrameDimensionsList[0]; FrameDimension objDimension = new FrameDimension(objGuid); int frameCount = sourceImage.GetFrameCount(objDimension); Image[] images = new Image[fr...

BDA Mpeg2 Transport Information Filter / directShow

I am looking for the latest Direct-Show BDA redistributable for Windows 7, Windows Vista and XP? I am having problem (it crash sometimes) with this “psisdecd.dll, v 6.6.6001.18000” and the one that come with windows 7 (v 6.6.7600.16485) doesn’t have the problem. ...

Return tiff file from outputstream on JSP

I am using a JSP to display a single TIFF file. The flow is as follows: I am given a PDF to convert to a TIFF. I feed a 'black box' API the PDF in the form of a File object and an OutputStream (I am currently using a ByteArrayOutputStream but that can change as needed. The 'black box' converts the PDF to a TIFF and saves the result to...

Does MS Access 2010 have Tif image control display issue?

We run MS Access as the front end for most of our business. When we upgraded from Access 2000 to Access 2003 the image control we used to print out Tif images failed to load Tifs anymore. A bit of Googling showed that MS did this intentionally and I'm wondering if the problem still happens in Access 2010. Can someone with a downloaded ...

Converting a 16 bit tiff file to something viewable online?

I need to take a 16 bit .tiff file and make it viewable on my website. To even view .tiff files many browsers require plugins. I found a software that could convert them to .jpg files but I was wondering if there is a way to do this independently. I am making my website using Ruby on Rails. I must be able to do the conversion from the w...

How to read and write a tiff image using java

If anyone knows how to do this, please help :-( I want to see a very simple code that works. ...

Computer Vision Website Image Slideshow help

Hi, I'm making an online display of the output of a computer vision algorithm. After running the algorithm I am left with a folder of about 1000 16 bit .tiff files. I need to put those on the website in a list for so that the researchers can click through and find the list. Also there needs to be an image frame with an "animated gif" ...

Reading and Writing out TIFF image in Java

I tried the following code to accomplish the task of reading and writing tiff images: // Define the source and destination file names. String inputFile = /images/FarmHouse.tif String outputFile = /images/FarmHouse.bmp // Load the input image. RenderedOp src = JAI.create("fileload", inputFile); // Encode the file as a BMP image. ...

Convert GeoTIFF to JPEG and Extract GeoTIFF Headers in Python

I am making a Python script which will read in a GeoTIFF file, and will do both: convert the GeoTIFF into a static JPEG (that is much smaller in size), and create a separate text file which contains the GeoTIFF headers. Using the Python GDAL API, I am able to get the script to open a GeoTIFF file, and print details, such as the RasterXS...

How Can I Programmatically Build a Multi-Page TIFF out of Many Single Page TIFFs, Using Python?

I've found, via Google, numerous people asking the same question, but no solutions. The Python Image Library (PIL) has tools for stepping through an already existing multi-page TIFF, but nothing about creating them. Libraries would hopefully be available on Windows, for Python 2.6. If there's some freeware out there which will do the ...

Inverted colours in tiff to PDF conversion

I'm sure I'm making some kind of silly mistake here, but when converting a tiff file to PDF, the colours become reversed. I can't figure out why. Here's my code: Document document = new Document(PageSize.A4, 50, 50, 50, 50); PdfWriter writer = PdfWriter.GetInstance(document, new FileStream("Image.pdf", FileMode.Create)); System.Drawin...

Obtain Latitude and Longitude from a GeoTIFF File

Using GDAL in Python, how do you get the latitude and longitude of a GeoTIFF file? GeoTIFF's do not appear to store any coordinate information. Instead, they store the XY Origin coordinates. However, the XY coordinates do not provide the latitude and longitude of the top left corner and bottom left corner. It appears I will need to d...

.NET Multipage Tiff with Lossy Compression

I need a way to take several jpgs and convert them into a single multi page Tiff. I have that working using GDI+ however it only works with the compression LZW which is lossless. This means that my 3 50KB Jpgs turn into 3MB multipage Tiff file. This is not something I can accept for the software that I am working on. I know that Tiff...

Write TIFF float images using CImg

Hi! I'm using CImg and I have noticed that I cant write TIFF images with float data. CImg wrotes them as 1byte/per pixel integer images. ¿Does anyone know if it is possible to write float images? Or, do you know other lib to do it. ...

Handling 16 bpp tiff file in C++

I need to open 16 bpp grayscale tiff image in C++ program. Trying to do this with GDI+ Image class, I get OutOfMemoryException (GDI+ doesn't support 16 bpp format). Standard Windows tools, like Paint and Picture Viewer, cannot open such image, possibly they use GDI or GDI+. ImageJ program opens such image successfully. Is there some SDK ...

How to convert .Doc to Tiff/Jpeg programmatically using C#?

I need to find a way of converting Word Doc files to Jpeg of Tiff files using C#/.NET. I cannot use any virtual printing drivers such as Microsoft Office Document Imaging. I can only use C# and/or C++ Libraries. Are there any free methods or APIs to accomplish this? ...