tiff

Converting PDF to multipage tiff (Group 4)

跟風遠走 提交于 2019-11-27 09:31:38
I'm trying to convert PDFs as represented by the org.apache.pdfbox.pdmodel.PDDocument class and the icafe library ( https://github.com/dragon66/icafe/ ) to a multipage tiff with group 4 compression and 300 dpi. The sample code works for me for 288 dpi but strangely NOT for 300 dpi, the exported tiff remains just white. Has anybody an idea what the issue is here? The sample pdf which I use in the example is located here: http://www.bergophil.ch/a.pdf import java.awt.image.BufferedImage; import java.io.FileOutputStream; import java.io.IOException; import org.apache.pdfbox.pdmodel.PDDocument;

How to convert TIFF to JPEG/PNG in java

喜欢而已 提交于 2019-11-27 08:27:15
recently i'm facing problem when try to display an image file. Unfortunately, the image format is TIFF format which not supported by major web browser (as i know only Safari support this format). Due to certain constraint, i have to convert this format to others format that supported by major browser. However, it bring a lots of problem for me when i try to converting the format. I had search through the web and although there been posted similar issue in this link How do I convert a TIF to PNG in Java? " but i can't have the result as it proposed.. Therefore i raise this Question again to

Open huge TIF in .NET and copy parts to new image

孤街浪徒 提交于 2019-11-27 05:57:35
问题 I'm looking for a library that can open and copy sections of a large TIFF file. I've looked at LibTiff.Net which opens the file very quickly but it doesn't have any functions for cropping or copying sections of the image. My image is 100,000 x 100,000 pixels upwards and creating a System.Drawing.Bitmap of that size crashes the application so converting to a Bitmap first is not an option. Can anyone recommend a .NET library? 回答1: If your file is less than 4GB on disk than I recommend you to

How to open a multi-frame TIFF imageformat image in .NET 2.0?

旧城冷巷雨未停 提交于 2019-11-27 05:37:44
问题 Image.FromFile(@"path\filename.tif") or Image.FromStream(memoryStream) both produce image objects with only one frame even though the source is a multi-frame TIFF file. How do you load an image file that retains these frames? The tiffs are saved using the Image.SaveAdd methods frame by frame. They work in other viewers but .NET Image methods will not load these frames, only the first. Does this mean that there is no way to return a multi-frame TIFF from a method where I am passing in a

Image resizing using C#

本秂侑毒 提交于 2019-11-27 02:24:43
问题 The images that are fresh out from digital cameras are often above the size of 2-3 MB making it difficult for it to get transferred over email and other ways. This requires the image to be resized (in terms of file size and not height or width). Quite similar to MS Paint offering image resizing functionality. I am not well educated on image file theories. I would appreciate if someone can point me towards following information sources: Image theory (how various image formats work jpeg, png,

How to run Photoviewer.dll in command line

馋奶兔 提交于 2019-11-27 02:13:00
问题 When I run the following code below in a command prompt (as administrator): "C:\Program Files\Windows Photo Viewer\PhotoViewer.dll" "C:\00012.tif" it produces error as shown below : "This file does not have a program associated with it for performing this action. Please install a program or, if one is already installed, create an associated in the Default Programs control panel." Both .tif and .tiff are associated in the Default programs control panel. I am trying to call this from a .net

Converting TIFF files to PNG in .Net

那年仲夏 提交于 2019-11-27 01:25:20
问题 I have to build an application in .Net (3.5) to pick up a TIFF file saved from another piece of software and convert it into a PNG so that it can be rendered easily in Internet Explorer. Does anyone know of any libraries (preferably freeware/open source) that will do this conversion for me? If there aren't any simple ways of getting it to a PNG are there any libraries that I can use to transform it to another IE friendly image format? I know I can pass a TIFF to the browser and use a plugin

Python: Read and write TIFF 16 bit , three channel , colour images

怎甘沉沦 提交于 2019-11-27 00:11:00
问题 Does anyone have a method for importing a 16 bit per channel, 3 channel TIFF image in Python? I have yet to find a method which will preserve the 16 bit depth per channel when dealing with the TIFF format. I am hoping that some helpful soul will have a solution. Here is a list of what I have tried so far without success and the results: import numpy as np import PIL.Image as Image import libtiff import cv2 im = Image.open('a.tif') # IOError: cannot identify image file tif = libtiff.TIFF.open(

Obtain Latitude and Longitude from a GeoTIFF File

限于喜欢 提交于 2019-11-26 23:53:24
问题 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 do some math to solve this problem, but I don't have a clue on where to start. What procedure is required to have this performed? I know that the GetGeoTransform()

A good library for converting PDF to TIFF? [closed]

白昼怎懂夜的黑 提交于 2019-11-26 22:49:06
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I need a Java library to convert PDFs to TIFF images. The PDFs are faxes, and I will be converting to TIFF so that I can then do barcode recognition on the image. Can anyone recommend a good free open source library for conversion from PDF to TIFF? 回答1: Disclaimer: I work for Atalasoft We have an SDK that can