tiff

WPF: TIFF images with JPEG compression?

て烟熏妆下的殇ゞ 提交于 2019-11-30 18:03:46
问题 I have a large number of TIFF images that I’d need to use in a WPF program (.NET 3.5 SP1 specifically and using C#). Half of the TIFF files contain color images encoded using JPEG compression and they don’t work with WPF. The “Microsoft Office Document Imaging” application handles the files fine. As Windows itself doesn’t really like them either (can’t produce thumbnails for instance) I’m assuming this is a restriction in the standard Windows Imaging Components (WIC) libraries. Does anyone

Load image into memory immediately

点点圈 提交于 2019-11-30 09:29:45
问题 I need to open all frames from Tiff image in WPF into memory and then delete the source. And after that I eventually need to render that image (resized according to window size). My solution is quite slow and I cannot delete file source before the first require. Any best practices? 回答1: Use CacheOption = BitmapCacheOption.OnLoad This option can be used with the BitmapImage.CacheOption property or as an argument to BitmapDecoder.Create() If you want to access multiple frames once the images is

How do I display tiff files on Silverlight?

馋奶兔 提交于 2019-11-30 04:06:26
问题 How do I display tiff files on a Silverlight application? I can display any image format except tiff, can anyone help me? Thanks. 回答1: I was successful displaying TIFFs in Silverlight. It's easy to port the free LibTiff.NET library to Silverlight, just 3-4 minor tweaks required. The library itself is quite legacy-like and raw to use and one still needs to have some knowledge about the inner workings of the TIFF format in order to be able to extract the image data the way one needs it. But it

Java API to convert JPEG to TIFF

怎甘沉沦 提交于 2019-11-30 02:16:26
问题 I am looking at java APIs to convert JPEG file streams to TIFF files. I looked at the JAI but did not find something similar to what i am looking at. Can someone point me to a good API which does this ? 回答1: There's an example here http://log.robmeek.com/2005/08/write-tiff-in-java.html and another here Tiff compression using Java ImageIO 回答2: ImageMagick has a Java api available 回答3: The javax.imageio package has built-in writers for most of the popular image types, including jpg and tiff.

How to save a TIFF photo from AVFoundations captureStillImageAsynchronouslyFromConnection to a file with EXIF metadata on an iPhone (iOS)?

对着背影说爱祢 提交于 2019-11-29 22:43:43
问题 With this question I only ask for the possibilities I have with Xcode and iOS without external libraries. I am already exploring the possibility of using libtiff in another question. Problem I have been sieving stack overflow for weeks and found working solutions for every one of my problems on its own. I have 4 things that need to work: I need the RGBA data as it comes from the camera, no compression whatsoever I need as much metadata as possible, especially EXIF I need to save in TIFF

Load image into memory immediately

北战南征 提交于 2019-11-29 15:46:13
I need to open all frames from Tiff image in WPF into memory and then delete the source. And after that I eventually need to render that image (resized according to window size). My solution is quite slow and I cannot delete file source before the first require. Any best practices? Ray Burns Use CacheOption = BitmapCacheOption.OnLoad This option can be used with the BitmapImage.CacheOption property or as an argument to BitmapDecoder.Create() If you want to access multiple frames once the images is loaded you'll have to use BitmapDecoder.Create . In either case the file will be loaded fully and

Display TIFF Format image in Android App

六眼飞鱼酱① 提交于 2019-11-29 15:22:59
I was only able to find one previous post regarding this, and the provided answer did not seem to work correctly. Is there ANY way to show a TIFF image with pinch / zoom ability in Android? Writing an app and I need to show a TIFF image. There appears to be, in fact, a way to display a TIFF image on Android even though that format isn't supported by ImageView. Take a look at this project . If you want to show tiff images in your android app but don't want to build native components, look there https://github.com/Beyka/Android-TiffBitmapFactory Is my library for working with tiff. 来源: https:/

Is it possible to make a NSBitmapImageRep with 24 bpp and no alpha channel?

独自空忆成欢 提交于 2019-11-29 11:41:02
I don't understand really well the premultiplied alpha. I need a NSBitmapImageRep without alpha channel (I don't need a particular bpp). My problem is that this code give me errors: NSSize imageSize = NSMakeSize(200, 200); //create a non-alpha RGB image rep with the same dimensions as the image NSBitmapImageRep* bitmap = [[NSBitmapImageRep alloc] initWithBitmapDataPlanes:NULL pixelsWide:imageSize.width pixelsHigh:imageSize.height bitsPerSample:8 samplesPerPixel:3 hasAlpha:NO isPlanar:NO bitmapFormat:NSAlphaNonpremultipliedBitmapFormat bytesPerRow:(3 * imageSize.width) bitsPerPixel:24]; //lock

How to create a TIFF on the iPad

百般思念 提交于 2019-11-29 11:03:25
I am trying to create a TIFF image from a UIImage . I looked into Apple's docs but could not find any information. Can anyone help me and explain how to create a TIFF image on an iPad? It seems to me that ImageMagick is way overkill just to write tiffs. Why not build libtiff ? iOS is supported from it, and is what most software packages use to write tiffs (including ImageMagick). You can even use the libtiff.a file from the ImageMagick link above. Just install the lib and tiff headers into your project. EDIT: Here is a nice tutorial showing you how to write a tiff once you have installed

Create Layered Tif with Java for use in Photoshop

喜欢而已 提交于 2019-11-29 08:20:34
I'm interesting in creating a layered tif with Java in a way that Photoshop will recognize the layers. I was able to create a multi-page tif , but Photoshop does not recognize the pages as layers. The pages are viewable with Acrobat though. Anyone know how Photoshop stores tif layer data and how that could be generated with Java? Thanks. I have researched this for my TIFF ImageIO plugin , and as far as I understand, the way Photoshop stores layer information in TIFFs is completely proprietary and not using standard TIFF mechanisms, like multi-page documents utilizing linked or nested IFDs (