tiff

Saving plot to tiff, with high resolution for publication (in R)

余生长醉 提交于 2019-12-17 21:51:20
问题 A journal we are sending an article to is asking for the following: To ensure the best reproduction quality of your figures we would appreciate high resolution files. All figures should preferably be in TIFF or EPS format... and should have the following resolution: Graph: 800 - 1200 DPI Photo: 400 - 800 DPI Color (only CMYK): 300 - 400 DPI (DPI = dots per inch) Since I am sending a graph, I am trying to save it using tiff. Here is the code I am using: tiff(filename = "c:\\aaa.tiff", res =

Create Multi-Page Tiff with Java

佐手、 提交于 2019-12-17 19:59:10
问题 I'm interested in taking a tif image and adding a layer to it that contains text with Java, preferably with the Twelve Monkeys image library if possible. I can tweak the code from here to either add text to a tif or create a new tif of the same size with only text, but not save them as a multi-page tif. For example: import javax.imageio.*; import javax.imageio.stream.ImageOutputStream; import java.awt.*; import java.awt.image.*; import java.io.*; public class ImageUtil { public static void

How do I convert a TIF to PNG in Java?

北慕城南 提交于 2019-12-17 16:13:40
问题 Under Java what is the best way to go about converting an TIF file to a PNG? Simplicity is preferable, but if the simplest way is to use a third party library then I would consider that solution. 回答1: First, install JAI. Then install JAI/ImageIO. Then do public static void main(final String[] args) throws Exception { final BufferedImage tif = ImageIO.read(new File("test.tif")); ImageIO.write(tif, "png", new File("test.png")); } 回答2: Use imageMagic java libraries like im4java, their

Splitting a multipage TIFF image into individual images (Java)

末鹿安然 提交于 2019-12-17 16:08:07
问题 Been tearing my hair on this one. How do I split a multipage / multilayer TIFF image into several individual images? Demo image available here. (Would prefer a pure Java (i.e. non-native) solution. Doesn't matter if the solution relies on commercial libraries.) 回答1: You can use the Java Advanced Imaging library, JAI, to split a mutlipage TIFF, by using an ImageReader: ImageInputStream is = ImageIO.createImageInputStream(new File(pathToImage)); if (is == null || is.length() == 0){ // handle

Image resources for iOS

丶灬走出姿态 提交于 2019-12-17 15:35:40
问题 I'm probably missing something obvious here, yet I've been unable to solve the following problem: I have a project with image resources for both normal and retina screens, like someimage.png and someimage@2x.png , which are stored in a separate bundle. When I build the project, Xcode automatically packs them into a single multipage tiff ( imageName.tiff ), I've checked it in finder - it is actually multipage tiff with both images. However, here comes a problem: I struggle to load appropriate

How can I get the StripOffsets tag to stay the same when using the LibTiff.Net 2.3 library?

拟墨画扇 提交于 2019-12-14 03:43:10
问题 I have an original image that has a tag StripOffsets = 768. When I edit the image in memory and then write it back to a file I try to specifically set the StripOffsets tag manually to the same value of the original which is 768 (using the following method). //Set the height for the page output.SetField(TiffTag.ROWSPERSTRIP, ttPage[i].Height); //Set the offset for the page output.SetField(TiffTag.STRIPOFFSETS, ttPage[i].StripOffset); For some reason the end results is StripOffsets = 8. Why

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

流过昼夜 提交于 2019-12-14 03:39:51
问题 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 nobody remembers how). Has anyone here ever done something like this before? 回答1: BitmapImage bi = new BitmapImage(); bi.BeginInit(); bi.StreamSource = new

16 bit tiff decoder for flex

北城余情 提交于 2019-12-14 03:15:21
问题 I am trying to open a 16 bit tiff image in my AIR app. What I have found is a baseline decoder which supports only 8 bit images. Here are my options: Extend its functionality to open 16 bit images but I dont know how to do that and how trivial it is. Open my images as 8 bit but I need to do that automatically within Flex. Dont know how to do that either. i also need to support lzw compression for tiff, so please refer me some resources so I can develop that in case it doesnt exist already.

Python image analysis: reading a multidimensional TIFF file from confocal microscopy

与世无争的帅哥 提交于 2019-12-14 02:05:00
问题 I have a TIFF image file from a confocal microscope which I can open in ImageJ, but which I would like to get into Python. The format of the TIFF is as follows: There are 30 stacks in the Z dimension. Each Z layer has three channels from different fluorescent markers. Each channel has a depth of 8 bits. The image dimensions are 1024x1024. I can, in principle, read the file with skimage (which I plan to use to further analyse the data) using the tifffile plugin. However, what I get is not

Convert TIFF to PostScript

落花浮王杯 提交于 2019-12-13 21:26:44
问题 I'm writing .net code (Windows Forms Application) which reads a TIFF image (CMYK) and sends it to printer (using WritePrinter). Before I send it, I need to convert the TIFF image to PostScript. Could any of you share the code how to create PostScript out of TIFF image? I appreciate it! 回答1: My company's product, dotImage includes an encode for EPS, but it will also generate page generation operators. Typical usage might be something like this: public void ConvertToPS(Stram tiffStm, int frame,