tiff

The are any CMYK graphics library?

心不动则不痛 提交于 2019-12-06 01:44:33
I'm looking for graphics library with CMYK support(JPG or TIF). I have to read one big image file and one small, then write second on first. Output have to be also CMYK(without any CMYK->RGB conversion). There are any? (C#/C++/Java or somthing else) (Disclaimer, I work for Atalasoft) Atalasoft dotImage will read and write images in as CMYK as well as perform overlay operations in CMYK space. the code you would need to do this is: public void OverlayCMYKOnCMYK(Stream bottomStm, Stream topStm, Point location, Steam outStm) { using (AtalaImage bottom = new AtalaImage(bottomStm, null), top = new

Jpeg from Tiff (jpeg-compressed)

▼魔方 西西 提交于 2019-12-05 22:52:40
问题 How can i extract image from JPEG-compressed TIFF file ? I've read bytes according to StripOffests and StripBytesCount fields, but i couldn't load an image from them. 回答1: Old style TIFF-JPEG (compression type 6) basically stuffed a normal JFIF file inside of a TIFF wrapper. The newer style TIFF-JPEG (compression type 7) allows the JPEG table data (Huffman, quantization), to be stored in a separate tag (0x015B JPEGTables). This allows you to put strips of JPEG data with SOI/EOI markers in the

How to add GPS metadata to TIFF in Java?

故事扮演 提交于 2019-12-05 20:34:28
I am attempting to add GPS data to a TIFF file I am creating in Java. I am using the JAI-ImageIO libraries, although if there is a better library for doing both GPS metadata and custom metadata, I am willing to look into it. I have attempted to add the GPS metadata to the nodes directly, but it seems to strip off the GPS IDF tag. I have attempted to add the GPS IFD to the TIFFIFD object (from the TIFFIMageMetadata object), but that doesn't seem to save the data properly. Basically, I am struggling to get it to save the GPS data properly, and trying to figure out how to get the data in there.

How to read TIFF header File c#?

限于喜欢 提交于 2019-12-05 20:12:19
I wanna know how it is possible to read a file in binary format. for example a tiff image file may have the following binary format in hex 0000 4949 002A 0000. how can i get these values in c#? Here is how I usually read files in hexadecimal format, changed for the header, as you need: using System; using System.Linq; using System.IO; namespace FileToHex { class Program { static void Main(string[] args) { //read only 4 bytes from the file const int HEADER_SIZE = 4; byte[] bytesFile = new byte[HEADER_SIZE]; using (FileStream fs = File.OpenRead(@"C:\temp\FileToHex\ex.tiff")) { fs.Read(bytesFile,

Automatic saving a figure as an image file in Matlab

試著忘記壹切 提交于 2019-12-05 19:39:40
I'm creating 49 figures in Matlab, they are all created automatically one after the other. I want them to also automatically be saved as .tif or .jpg images with names corresponding to their figure number. Can I do it? And if so,how? the code for the creation of the figures is: for num_picture=0:48 ... figure (num_picture+1) imshow (screen_im) end The ... part is where all the calculations of screen_im are. I want those images in order to create a movie from them, If there is a way where I can create the movie automatically form Matlab, it would be good also, actually it will be better. You

Showing TIFF images in Java

孤街醉人 提交于 2019-12-05 19:23:06
Someone can tell me how to load a multipage TIFF image in Java and show it in a JScrollPane? Which class can I use? AFAIK, you can't do that with Java's standard API. JAI can however: import java.io.File; import java.io.IOException; import java.awt.Frame; import java.awt.image.RenderedImage; import javax.media.jai.widget.ScrollingImagePanel; import javax.media.jai.NullOpImage; import javax.media.jai.OpImage; import com.sun.media.jai.codec.SeekableStream; import com.sun.media.jai.codec.FileSeekableStream; import com.sun.media.jai.codec.TIFFDecodeParam; import com.sun.media.jai.codec

How to embed a small image on top of another image and save it using JavaScript?

ⅰ亾dé卋堺 提交于 2019-12-05 19:16:46
I have a large image tif format and two small images. What I wanted to achieve is that I want to embed either of the two small images on top of a large image and save it using JavaScript. <html> <body> <img src="largeimg" /> <p>Select the image to embed on the large image</p> <img src="smallimg1" /> <img src="smallimg2" /> </body> </html> Is there any way to achieve the above using javascript? kubetz If the images are on the same origin the it is possible to use canvas. draw images to canvas call canvas.toDataURL() to retrieve the image data create img element and append data to it Example:

How to serve high-resolution imagery in a low-resolution form using C#

廉价感情. 提交于 2019-12-05 16:28:34
Trying to use 300dpi tif images for display on the web. At the moment, when the user uploads an image, I am dynamically creating a thumbnail. If a page is created referencing the high-res image with a width of 500x500px, can I use the same functionality to convert to a gif/jpg on the fly. What is the impending resolution of the jpg that would be created? EDIT: To further explain the usage, the user uploads 300dpi images which are approx 3000x3000 pixels. The user is using these images to create a catalog page which will be used for pdf printing. When they are creating the page, we only need

Is there a way to infer what image format a file is, without reading the entire file?

帅比萌擦擦* 提交于 2019-12-05 15:59:07
问题 Is there a good way to see what format an image is, without having to read the entire file into memory? Obviously this would vary from format to format (I'm particularly interested in TIFF files) but what sort of procedure would be useful to determine what kind of image format a file is without having to read through the entire file? BONUS : What if the image is a Base64-encoded string? Any reliable way to infer it before decoding it? 回答1: Most image file formats have unique bytes at the

Convert TIFF LZW to CCITT

こ雲淡風輕ζ 提交于 2019-12-05 13:44:07
This is a question about TIFF and compression. I have hundreds of LZW compressed tiff images. I wonder, is it possible to convert those to CCITT T.6? Is there some API? Please help. Bobrovsky LZW compression can be used to compress almost any image. CCITT T.6 can compress only bilevel (black and white) images. If your images are bilevel ones and they are compressed with LZW compression then you can recompress them using tiffcp utility (comes with LibTiff.Net library, free, source code available). If your images are full-color ones then you will have to convert them to bilevel first. One of my