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
6
votes
2 answers

Stripping Alpha Channel from Images

I want to strip the alpha channel (transparent background) from PNGs, and then write them as JPEG images. More correctly, I'd like to make the transparent pixels white. I've tried two techniques, both of which fail in different ways: Approach…
Rob
  • 5,512
  • 10
  • 41
  • 45
4
votes
1 answer

How to keep the stream of ImageOutputStream in memory?

The following code uses twelvemonkeys to create a tiff file. The created file gets flushed to disk automatically. But I would like the file to be created in memory only. How to achive this with the ImageOutputStream? try { // Create output stream …
Chilly Code
  • 678
  • 2
  • 6
  • 17
4
votes
2 answers

How to register twelvemonkey.imageIO into java servicemix registery

Error: javax.imageio.IIOException - Unsupported Image Type] javax.imageio.IIOException: Unsupported Image Type at com.sun.imageio.plugins.jpeg.JPEGImageReader.readInternal(JPEGImageReader.java:977)[:1.6.0_26] at…
shahjenu
  • 71
  • 4
3
votes
1 answer

Create Multi-Page Tiff with Java

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…
jonD02
  • 125
  • 1
  • 11
3
votes
1 answer

How to write Exif to a JPEG with TwelveMonkey's ExifWriter class

Im using the TwelveMonkey's lib to read Exif data from jpeg like: try (ImageInputStream stream = ImageIO.createImageInputStream(input)) { List exifSegment = JPEGSegmentUtil.readSegments(stream, JPEG.APP1, "Exif"); …
Patrick
  • 33,984
  • 10
  • 106
  • 126
3
votes
1 answer

com.twelvemonkeys.servlet.image.IIOProviderContextListener

I am using maven to build project which deploys on the tomcat server. The build process completed successfully but when i am trying to deploy the project on tomcat 7 its throwing error. I can see the twelemonkey-servlet.jar is present in the lib…
Anup
  • 31
  • 1
  • 1
  • 6
2
votes
0 answers

ImageIO with encrypted File cache

Problem: I read and write large multipage tiffs. During my test I have seen plain tiffs on disk. I know I can disable writing to disk with ImageIO.setUseCache(false) but then all data is in memory, what may lead to OutOfMemoryException. Is there…
hiaclibe
  • 636
  • 9
  • 25
2
votes
0 answers

Configure Image asset shows error while adding icon in android studio,linux

I have just updated Android Studio to 3.5.3 in Linux. After that, I couldn't add image asset as it shows error - preview rendering error The error screen is added below In the previous version, it was working fine. Please,…
2
votes
1 answer

TwelveMonkeys 3.1.1 || 3.1.2 not working with maven-dependency-plugin

I am trying to use TwelveMonkeys in my application to deal with thumbnail generation. Also, I am using maven-dependency-plugin to unpack all dependencies and create a FAT jar. Though, plugin work quite well in normal scenarios, but simply not…
Prakhar Mishra
  • 1,586
  • 4
  • 28
  • 52
2
votes
0 answers

how to register plugins to java registery

How we can register any kind of plugin or java libs to java registry. I want to execute my application in Apache service mix and facing issue of unsupported image type. I have been using TwelveMonkeys libs but still facing same issue. As per…
shahjenu
  • 71
  • 4
1
vote
0 answers

Transparency in the BMP image format Java

Is it possible to store a BufferedImage with transparency in the BMP image format? With 32 bits per pixel this information should be storable. I also don't need a fine gradation of transparency but only is transparent or not. I want to save the…
1
vote
1 answer

Strange exception when trying to save tif with dpi

Java-Version: openjdk version "11" 2018-09-25 OpenJDK Runtime Environment 18.9 (build 11+28) OpenJDK 64-Bit Server VM 18.9 (build 11+28, mixed mode) TwelveMonkeys ImageIO Dependencies: com.twelvemonkeys.imageio
HarleyDavidson
  • 559
  • 6
  • 17
1
vote
0 answers

Spring Boot (Reactive) - bootJar vs Service Provider Interface (SPI)

I'm using Reactive Spring Boot with Netty and Gradle as a build system. To build production's executable I use a task bootJar with launchScript(). I'm also using various TwelveMonkeys' plugins for ImageIO processing. Everything works fine when I run…
1
vote
0 answers

Dependency pulls in a transitive library that breaks ImageIO.read using TIFF files

I am currently trying to merge a seperate project into ours, that uses deeplearning4j-core as a dependency. deeplearning4j-core uses com.twelvemonkeys.imageio internally, which registers plugins into ImageIO.read(). However, that seems to break all…
Joe
  • 216
  • 4
  • 18
1
vote
1 answer

Watermarking on TIFF image

I am Trying to put watermark on images using java. Currently I put watermark on images with extension with png, jpeg but the code is not working on tiff image. Previously it was giving null pointer error but after including twelvemonkey core and…
Sameesh
  • 315
  • 8
  • 18
1
2 3 4