tiff

Converting TIFF to JPEG using .NET [closed]

给你一囗甜甜゛ 提交于 2019-12-12 21:31:46
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 2 years ago . I need to convert a TIFF to JPEG using .NET. I have already done this succesfully using Windows 7 with a simple Bitmap.Save() . But it seems that this doesn't work on Windows XP (Windows 7 has more complete support for TIFF images). I saw that there is a .NET library called

Library for writing XMP to a multipage TIFF

笑着哭i 提交于 2019-12-12 20:27:30
问题 Can you recommend a library that lets me add XMP data to a TIFF file? Preferably a library that can be used with Java. 回答1: There is JempBox which is open source and allows the manipulation of XMP streams, but it doesn't look like it will read/write the XMP data in a TIFF file. There is also Chilkat which is not open source, but does appear to do what you want. 回答2: It's been a while, but it may still be useful to someone: Apache Commons has a library called Sanselan suitable for this task.

Converting a 16 bit tiff file to something viewable online?

不羁的心 提交于 2019-12-12 20:17:01
问题 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 website because the whole point of the website is to upload large folders of .tiff files and display them in an online slideshow. Any help would be appreciated.

Set DPI value to Tiff Image in C#

China☆狼群 提交于 2019-12-12 19:40:35
问题 I'm trying to set dpi value of a TIFF Image in C# through code but somehow the values are not persisted after saving the Image. using (var image = new Bitmap(@"c:\newimage.tif")) { uint[] uintArray = { 300, 1}; //Setting DPI as 300 byte[] bothArray = ConvertUintArrayToByteArray(uintArray); PropertyItem item = image.PropertyItems.Where(p => p.Id == 0x11A).Single(); var val = BitConverter.ToUInt32(item.Value, 0); Console.WriteLine(val); item.Id = 0x11A; item.Value = bothArray; item.Type = 5;

OpenCV imwrite saving black png

自作多情 提交于 2019-12-12 19:18:40
问题 I'm trying to write a C++ program that applies a flatfield to an image. It's supposed to load an image and divide it by another loaded image, then export it as a PNG. My program compiles correctly, but only produces an all-black image. #include <climits> #include <stdio.h> #include <string> #include <opencv/cv.h> #include <opencv/highgui.h> using namespace cv; using namespace std; int main( int argc, char *argv[] ) { const char *flat_file = argv[1]; const char *img_file = argv[2]; const char

R: How to install package tiff on Mac OS X Mavericks?

穿精又带淫゛_ 提交于 2019-12-12 15:13:59
问题 I'd like to install package tiff from rforge (http://www.rforge.net/tiff/index.html) on Mac OS X Mavericks. R-Version is > version _ platform x86_64-apple-darwin13.1.0 arch x86_64 os darwin13.1.0 system x86_64, darwin13.1.0 status major 3 minor 1.0 year 2014 month 04 day 10 svn rev 65387 language R version.string R version 3.1.0 (2014-04-10) nickname Spring Dance Trying to install it I get the following error: > install.packages("tiff","http://rforge.net/",type="source") Warning in install

Python Wand change tiff to min-is-white

北战南征 提交于 2019-12-12 15:07:06
问题 I need to convert files to tiff where photometric is set "min-is-white" (white is zero) to comply with the required standards. I'm using Wand to interact with Photomagick but every I save a bilevel tiff file, it creates a min-is-black. How can I get Wand to saves it where White is Zero? Is it even possible? 回答1: Mark's comments are correct. You need to set the -define property for ImageMagick. For wand, you'll have to extent the core wand.api.library to connect MagickWand's C-API

Write TIFF file in python from String

被刻印的时光 ゝ 提交于 2019-12-12 13:35:22
问题 I need a way to easily write a compressed TIFF file from a String in python. I already look at the Python Imaging Library PIL But I need to write a very specific TIFF format and PIL only supports uncompressed at the moment. I need to write a LZW compressed, striped TIFF with just one simple line of text in it. I would rather not have to write something from scratch, but if I do I do. 回答1: I've used this code in the past, so I can say that it works. This script is from 1997 , and PIL has yet

LibTIFF: Extract all tags from a TIFF image

蹲街弑〆低调 提交于 2019-12-12 10:38:04
问题 I'm currently working on a project which requires me to split a TIFF image into a file containing all tags and a file containing all image data and to reconstruct a TIFF image from these files. The only problem is that it seems that LibTIFF provides no easy way to grab all tags from an image. I've tried using TIFFGetTagListCount and then TIFFGetField to retrieve the tag, but this only returns a small subset of the tags. I've started rolling my own version, but I just want to double check and

Change tiff pixel aspect ratio to square

China☆狼群 提交于 2019-12-12 09:10:24
问题 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 ratio, but have no idea how to do that in C#. I'll also need to stretch the image so that changing the aspect ratio still makes the image legible. Has anyone