tiff

Conversion of TIFF to PDF with Ghostscript

人走茶凉 提交于 2019-12-01 17:28:29
Could you tell me how can I convert TIFF to PDF with using Ghostscript or Postscript? I tried to use this command: gswin32c.exe -dBATCH -dNOPAUSE -sDEVICE=pdfwrite -sOutputFile=o.pdf test.tif But it doesn't work. It produces an error: GPL Ghostscript 9.06 (2012-08-08) Copyright (C) 2012 Artifex Software, Inc. All rights reserved. This software comes with NO WARRANTY: see the file PUBLIC for details. Error: /undefined in II* Operand stack: Execution stack: %interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false

Pyinstaller .exe cannot find _tiffile module - Loading of some compressed images will be very slow

白昼怎懂夜的黑 提交于 2019-12-01 16:23:46
问题 When I run my code from Pyinstaller the tiff reader works fine. After freezing using Pyinstaller I get the following warning: UserWarning: ImportError: No module named '_tifffile'. Loading of some compressed images will be very slow. Tifffile.c can be obtained at http://www.lfd.uci.edu/~gohlke And sure enough, a tiff file that used to take seconds to load into a numpy array may now take minutes. Here is a simplified form of my code to focus on the problem. If you load an example tiff like

Conversion of TIFF to PDF with Ghostscript

给你一囗甜甜゛ 提交于 2019-12-01 16:14:05
问题 Could you tell me how can I convert TIFF to PDF with using Ghostscript or Postscript? I tried to use this command: gswin32c.exe -dBATCH -dNOPAUSE -sDEVICE=pdfwrite -sOutputFile=o.pdf test.tif But it doesn't work. It produces an error: GPL Ghostscript 9.06 (2012-08-08) Copyright (C) 2012 Artifex Software, Inc. All rights reserved. This software comes with NO WARRANTY: see the file PUBLIC for details. Error: /undefined in II* Operand stack: Execution stack: %interp_exit .runexec2 --nostringval-

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

我的未来我决定 提交于 2019-12-01 15:47:01
问题 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 trick, I wouldn't mind seeing it, but I was hoping I could accomplish this in Python. 回答1: A freeware option: Irfanview can do it, even via the command line;

Best setting for scanners for scanning documents(TIFF and PDF) [closed]

风流意气都作罢 提交于 2019-12-01 13:02:57
问题 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 2 years ago . What are the best settings for scanner in order to scan documents(white & black text) and use them for OCR conversion(for best results) and what are standard settings and specification for PDF and TIFF format ? 回答1: For OCR, best scanning settings are: 300 dpi resolution for regular text, 400 dpi resolution for

Java Handling TIF Images

▼魔方 西西 提交于 2019-12-01 09:05:57
问题 My question is, what how can I successfully load a .tif file into an Image instance in Java? Let me give some more detail now. I have read a lot of the threads on stackoverflow on how to handle/convert TIF images in Java. I have tried a lot of the stackoverflow suggestions (I say suggestions, because rarely do the people asking come back and say something has worked for them). I am pretty sure I need to use the Java Advanced Imaging (JAI) library, but I don't think I know how to use it. Let

How to exclude specific TIFF reader from ImageIO?

南楼画角 提交于 2019-12-01 08:54:42
Stack: Java - 1.8.0_91 Scala - 2.11.8 Library - it.geosolutions.imageio-ext imageio-ext-tiff 1.1.15 We are reading lots of old TIF images and for some reason read is highly inconsistent - for some reasons on a different run reading the same image can succeed or fail with exception - javax.imageio.IIOException: Invalid component ID 3 in SOS at com.sun.imageio.plugins.jpeg.JPEGImageReader.readImage(Native Method) at com.sun.imageio.plugins.jpeg.JPEGImageReader.readInternal(JPEGImageReader.java:1236) at com.sun.imageio.plugins.jpeg.JPEGImageReader.read(JPEGImageReader.java:1039) at com.sun.media

Generating TIFF in iOS

浪尽此生 提交于 2019-12-01 08:42:32
问题 I have not been able to find any info on creating a TIFF on iOS (or converting a jpg or getting a TIFF representation from a UIImage) in the search engines. I need to create a TIFF image, preferably from my UIIMage or converting from a jpg representation. I see PNG and JPG support but nothing for TIFF images. The service I am uploading images to requires TIFF (signature capture). Any help appreciated. 回答1: Have a look at ImageMagick, which has been compiled for iOS. This will handle the

JAI: How do I extract a single page input stream from a multipaged TIFF image container?

☆樱花仙子☆ 提交于 2019-12-01 08:25:21
问题 I have a component that converts PDF documents to images, one image per page . Since the component uses converters producing in-memory images, it hits the JVM heap heavily and takes some time to finish conversions. I'm trying to improve the overall performance of the conversion process, and found a native library with a JNI binding to convert PDFs to TIFFs. That library can convert PDFs to single TIFF files only (requires intermediate file system storage; does not even consume conversion

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

时光毁灭记忆、已成空白 提交于 2019-12-01 07:30:18
问题 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[], then we need to make this conversion to black & white in order to send them to a component which does further processing. We do not plan at this point, to ever