Questions tagged [twelvemonkeys]

TwelveMonkeys ImageIO is a collection of plugins and extensions for Java's ImageIO.

TwelveMonkeys ImageIO is a collection of plugins and extensions for Java's ImageIO.

These plugins extends the number of image file formats supported in Java, using the javax.imageio.* package. The main purpose of this project is to provide support for formats not covered by the JRE itself.

Support for formats is important, both to be able to read data found "in the wild", as well as to maintain access to data in legacy formats. Because there is lots of legacy data out there, we see the need for open implementations of readers for popular formats. The goal is to create a set of efficient and robust ImageIO plug-ins, that can be distributed independently.

48 questions
1
vote
1 answer

Read Image, modify metadata, and re-write image in pure Java

I need to be able to update image metadata (namely, tags, creator, description, comments) and do it within regular Exif and XMP. Most likely, i'll be reading the Exif, and writing XMP. After much searching for a library that works ALSO for writing,…
svaens
  • 649
  • 7
  • 23
1
vote
2 answers

Read TIFF ICC profile using Twelvemonkeys ImageIO

I need to extract the embedded ICC profile from TIFF files. I can read the IIOMetadata and my IDE shows the ifd field containing the ICC profile (tag ID 34675). But how can I read it to a ICC_Profile object? ImageInputStream input =…
Michael
  • 2,528
  • 3
  • 21
  • 54
1
vote
0 answers

ClassCastExceptions with TwelveMonkeys even on isolated application classloaders on Weblogic 12c

We have two web applications; AppA (as EAR) uses TwelveMonkeys and AppB (as WAR) uses JAI. These web applications are deployed on Weblogic 12c, wherein each application is isolated from each other. They both have application-level classloaders (to…
1
vote
0 answers

Java - 2nd page of multi-page-tiff goes black if compression is enabled

i want to create a multi-page-TIFF with one or two pages. The problem is: if I use the ImageWriteParam to set any kind of compression the 2nd page in the TIFF goes completely black. If i don't set a compression it is displayed fine (the file is…
Mario B
  • 2,102
  • 2
  • 29
  • 41
1
vote
0 answers

How to use ImageIO plugins with a jar converted to dll using IKVM?

I am using Apache Tika in .Net by converting the jar to a dll with IKVM, and running into a problem parsing images out of PDF files. Closer inspection shows this is due to some methods not being implemented in JPEGImageReader.java in the openjdk…
Owen Pauling
  • 11,349
  • 20
  • 53
  • 64
1
vote
0 answers

Reading DPI from photoshop file

I'm trying to read DPI from a PSD file with JAVA. I'm using ImageIO (incl TwelveMonkeys extensions) and/or Apache Commons Imaging. Unfortunately can't manage it to go (JPG, PNG and TIFF works fine) here is the file information from photoshop: …
rome
  • 476
  • 1
  • 9
  • 19
1
vote
1 answer

Error trying to read a region from a very large image file in java

I need to read a very large image file (56000 px X 49000 px). I need to read it in small rectangular chunks, so I am trying to follow this example: Read region from very large image file in Java However, I get this error:…
Samarth
  • 133
  • 1
  • 6
1
vote
1 answer

Add Tiff Image Color Profile (sRGB or Adobe 1998) with Java

I searched the web high and low and I can't find a solution for how to add a sRGB or Abobe (1998) color profile to a Tiff Image with Java. There's some examples out there for jpgs and pngs, but they don't apply to tiffs. I have been trying to do it…
jonD02
  • 125
  • 1
  • 11
1
vote
0 answers

How to add ImageIO plugins to the Google App Engine Java dev server?

The documentation for Google App Engine says: The service accepts image data in the JPEG, PNG, WEBP, GIF (including animated GIF), BMP, TIFF and ICO formats. It can return transformed images in the JPEG, WEBP and PNG formats. If the input…
stickfigure
  • 13,458
  • 5
  • 34
  • 50
0
votes
0 answers

Exporting TIFF takes a long time and creates big files

I'm using the "Twelve Monkeys" (Github) library to read a .tif/.tiff file in Java 8, add a logo and export the new image as a new .tif/.tiff file: try { BufferedImage buffLogo = ImageIO.read(fLogo); BufferedImage buffInput =…
Neph
  • 1,823
  • 2
  • 31
  • 69
0
votes
0 answers

Reading a tiled float32 BigTIFF using Twelvemonkeys java ImageIO

I want to read a specific GeoTIFF file, which is a BigTIFF containing a set of uncompressed 128x128 tiles of float32 data. My code snippet requests a small rectangle. It works with ordinary TIFFs, small test RGBA BigTIFFs, and a small test float32…
RichardF
  • 1
  • 2
0
votes
0 answers

Read BMP with fake alpha with twelvemonkeys

I have a BMP file with fake alpha (similar to rgb32fakealpha.bmp from the bmp suite). That is, it has 32 bits per pixel, but doesn't have bitfields set, but uses the extra bits in each pixel as alpha anyways. And I'm using the twelvemonkeys library…
Thayne
  • 6,619
  • 2
  • 42
  • 67
0
votes
1 answer

Convert a PNG to PPM using ImageIO TwelveMonkey extension

I have a requirement to convert a PNG file to PPM file. In the same project, I have used TwelveMonkey extension to convert a PPM to PNG and it results perfectly. But when trying the other way round, it results in error. The output PPM file will…
0
votes
0 answers

Proper Method for Adding Libraries to Artifact in IntelliJ

I have a desktop application written in Java/JavaFX that loads an image, performs certain modifications, then outputs the resulting image. I'm using IntelliJ to build the app, then packaging the resulting Artifact and some additional support files…
0
votes
1 answer

Add custom metadata to tiff

I want to add some custom metadata to a multipage tiff for further processing steps, like identifier1 = XYZ1 identifier2 = XYZ2 ... My idea was to update (see code/TODO below) IIOMetadata streamMetadata [option 1] IIOMetadata imageMetadata…
hiaclibe
  • 636
  • 9
  • 25