Questions tagged [jai]

The Java Advanced Imaging provides powerful collection of methods for image processing and image analysis for Java.

The Java Advanced Imaging API (JAI) provides a set of object-oriented interfaces that supports a simple, high-level programming model which allows images to be manipulated easily in Java applications and applets. JAI goes beyond the functionality of traditional imaging APIs to provide a high-performance, platform- independent, extensible image processing framework.

See Also - Java Advanced Imaging

310 questions
133
votes
1 answer

Where can I download Jai and Jai-imageio?

I need to get the pixel color of a TIFF image, if you know any alternatives to Jai and Jai-imageio please let me know.
Marsellus Wallace
  • 17,991
  • 25
  • 90
  • 154
54
votes
9 answers

Using Java Advanced Imaging with Maven

The JAI setup is quite tedious, involving multiple jars and environment variables. It would aid the project's portability quite a lot if I could add it as a regular Maven dependency. The POM snippet I'm using is
Robert Munteanu
  • 67,031
  • 36
  • 206
  • 278
27
votes
4 answers

I get an error downloading javax.media.jai_core:1.1.3 from maven central

I get an error downloading javax.media.jai_core:1.1.3 from maven central. The error is: download failed: javax.media#jai_core;1.1.3!jai_core.jar using play compiler.
gavioto
  • 1,695
  • 2
  • 17
  • 38
19
votes
3 answers

JAI and ImageIO for 64 bit Windows

i searched JAI and ImageIO library for 64 bit windows, but i didn't find any version of these. Last 64 bit win vesion request on Java Bug tracking system 6-7 years ago. I think, jai's developers will not release any version for win64. :( My question…
Furkan
  • 451
  • 1
  • 5
  • 14
17
votes
7 answers

Converting PNG into JPEG

I'm having problems converting a simple PNG into a JPEG format. I'm using the following code: ... File png = new File(filePath); try { SeekableStream s = new FileSeekableStream(png); PNGDecodeParam pngParams = new…
Norberto
  • 185
  • 1
  • 2
  • 7
15
votes
4 answers

Pure Java alternative to JAI ImageIO for detecting CMYK images

first I'd like to explain the situation/requirements that lead to the question: In our web application we can't support CMYK images (JPEG) since IE 8 and below can't display them. Thus we need to detect when someone wants to upload such an image and…
Thomas
  • 87,414
  • 12
  • 119
  • 157
14
votes
7 answers

JAI vendorname == null

So I finished coding my application to rotate TIFF images which required JAI to manipulate the TIFFs. It works fine when working under Eclipse, but whenever I build a fat jar for the library and then create one implementing that (per…
Robert
  • 1,745
  • 5
  • 34
  • 61
14
votes
5 answers

How to convert TIFF to JPEG/PNG in java

recently i'm facing problem when try to display an image file. Unfortunately, the image format is TIFF format which not supported by major web browser (as i know only Safari support this format). Due to certain constraint, i have to convert this…
jc88
  • 471
  • 1
  • 5
  • 12
13
votes
1 answer

Java Advanced Imaging - where to get latest binary build?

I am searching for the latest official binary builds of Java Advanced Imaging (at least the platform independent Java-only build). The official project web page is on http://java.net/projects/jai-core/ but it only links to the source - binary…
Robert
  • 39,162
  • 17
  • 99
  • 152
10
votes
6 answers

Faster alternative to ColorConvertOp

I have a method converting BufferedImages who's type is TYPE_CUSTOM to TYPE_INT_RGB. I am using the following code, however I would really like to find a faster way of doing this. BufferedImage newImg = new BufferedImage( src.getWidth(), …
Matt MacLean
  • 19,410
  • 7
  • 50
  • 53
10
votes
2 answers

How to fix "Cannot read JPEG2000 image: Java Advanced Imaging (JAI) Image I/O Tools are not installed"

I am setting up a java project where I use pdfBox to get images out of PDF. Since I am using tika-app for my other functions, I decided to go with pdfBox present inside tika-app-1.20.jar. I have tried including the jai-imageio-core-1.3.1.jar…
Santhosh
  • 431
  • 5
  • 16
10
votes
3 answers

java.lang.NoClassDefFoundError: Could not initialize class javax.media.jai.JAI

I recently started my first program with GeoTools in which i was also using JAI- Java Advanced Imaging 1_1_2_01 with JDK 1_7. It worked fine until I added GeoTiff Jars. I found following error Exception in thread "main"…
prem30488
  • 2,828
  • 2
  • 25
  • 57
10
votes
3 answers

Read region from very large image file in Java

Is there a Java library that can read regions of very large image (e.g. JPEG) files (> 10,000 x 10,000 pixels) without keeping the whole image in memory. Or alternatively, which Java library is capable of handling very large image files with a…
f3lix
  • 29,500
  • 10
  • 66
  • 86
9
votes
9 answers

Check if a file is an image

I am using JAI and create a file with: PlanarImage img = JAI.create("fileload", myFilename); I check before that line if the file exists. But how could I check if the file is a .bmp or a .tiff or an image file? Does anyone know?
Tim
  • 13,228
  • 36
  • 108
  • 159
8
votes
5 answers

"JRE 1.3 or higher must be installed!" / "JDK 1.3 or higher must be installed!" errors installing JAI 1.1.3 on Windows 7 (x64)

I am getting these errors... Severe: JRE 1.3 or higher must be installed! Severe: JDK 1.3 or higher must be installed! ...when installing JAI (Java Advanced Imaging) 1.1.3 on Windows 7 (x64), with JRE 7 (1.7) installed at "C:\Program…
Xonatron
  • 15,622
  • 30
  • 70
  • 84
1
2 3
20 21