tiff

Exception when converting tiff file to pdf file with iText

泪湿孤枕 提交于 2019-12-20 02:47:06
问题 When I try to convert a tiff file to pdf file by using itextpdf 5.5.5 , the following exception occurs: java.lang.RuntimeException: Scanline must begin with EOL code word. at com.itextpdf.text.pdf.codec.TIFFFaxDecoder.readEOL(TIFFFaxDecoder.java:1303) at com.itextpdf.text.pdf.codec.TIFFFaxDecoder.decode2D(TIFFFaxDecoder.java:811) at com.itextpdf.text.pdf.codec.TiffImage.getTiffImage(TiffImage.java:223) at com.itextpdf.text.pdf.codec.TiffImage.getTiffImage(TiffImage.java:315) at com.itextpdf

Add a file association with tiff files on iOS

夙愿已清 提交于 2019-12-19 19:38:23
问题 I'd like to create a file associate with tiff files in my iOS app (i.e. so that my app appears as a target for opening tiff files from Mail or Safari). Adding the following to my Info.plist file doesn't seem to work: <key>CFBundleDocumentTypes</key> <array> <dict> <key>CFBundleTypeName</key> <string>tiff</string> <key>LSItemContentTypes</key> <array> <string>public.tiff</string> </array> <key>LSHandlerRank</key> <string>Alternate</string> </dict> </array> I have an app that I associate with

Scale multi page TIFF Image in java

不羁的心 提交于 2019-12-19 11:59:35
问题 I want to change the height of multi page TIFF image so I am using below code snippet to scale it. But It returns just first page from the tiff file , I guess it converts it to JPEG image. How to retain all pages of the file?? public static byte[] scale(byte[] fileData, int width, int height) { System.out.println("width:::"+width+"::::height:::"+height); ByteArrayInputStream in = new ByteArrayInputStream(fileData); ByteArrayOutputStream buffer=null; BufferedImage img=null; BufferedImage

Converting a TIFF image to PNG/JPG/GIF in PHP without Imagick

一世执手 提交于 2019-12-19 07:51:03
问题 I am working on a website for my client in which tiff images need to converted to png or jpg before they are assembled into a PDF. I have read many articles, here and other sites, on this issue. They all recommend using Imagick to accomplish this. The problem is, my client's server does not have that extension installed, and the hosting company is unwilling to install the extension. Nor is PDFLib installed on the server (which supports importing tiffs into a PDF). Thanks. 回答1: This is tricky

R - original colours of georeferenced raster image using ggplot2- and raster-packages

余生颓废 提交于 2019-12-19 03:42:13
问题 I would like to use the original colortable of a >>georeferenced raster image<< (tif-file) as coloured scale in a map plotted by ggplot/ggplot2 . Due to not finding an easier solution, I accessed the colortable -slot from the legend -attribute of the loaded raster image (object) raster1 like so: raster1 <- raster(paste(workingDir, "/HUEK200_Durchlaessigkeit001_proj001.tif", sep="", collapse="")) raster1.pts <- rasterToPoints(raster1) raster1.df <- data.frame(raster1.pts) colTab <- attr

Display TIFF Format image in Android App

旧城冷巷雨未停 提交于 2019-12-18 08:58:49
问题 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. 回答1: 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. 回答2: If you want to show tiff images in your android app but don't want to build native components,

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

浪子不回头ぞ 提交于 2019-12-18 07:02:46
问题 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

Create Layered Tif with Java for use in Photoshop

偶尔善良 提交于 2019-12-18 05:12: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. 回答1: 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

How to create a TIFF file?

给你一囗甜甜゛ 提交于 2019-12-18 05:12:13
问题 How to create a TIFF file in PHP? I want create a TIFF file and fax it. I know how to fax it but I don`t know how to create a TIFF file. 回答1: Yes, ImageMagick. Don't count on trying to use the PHP extension for it though, you're going to be making shell commands to the convert command. It's as simple as: system('/path/to/imagemagick/convert orginal_image.jpg new_image.tiff'); Hope that helps. 回答2: ImageMagick is the solution. 来源: https://stackoverflow.com/questions/1951101/how-to-create-a

Good Tiff library for .NET [closed]

こ雲淡風輕ζ 提交于 2019-12-18 02:09:35
问题 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 . I know libtiff for C, but haven't found a port for .NET. Does such a port exist? 回答1: My company recently released a free and open-source(New BSD license) version of LibTiff written using only managed C# (license permits commercial use and distribution). http://bitmiracle.com/libtiff/ 回答2: What about using the