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
0
votes
0 answers

Writing bilevel TIFF Image with thumbnail in Java

I have A0/E size bilevel TIFF Image with Group 4 Compression. I want to add/embed compressed thumbnail image. I need help for writing sequence structure for these images. Also Type and recommended size of the thumbnail image Thanks and Kind…
0
votes
1 answer

Java JAI JPEG image encode RuntimeException

I'm trying to build an application that encodes and resize images off any type of image and store it as a JPEG. I use this kind of weird jpeg and use for testing. For some reason JAI cannot render this image as a JPEG. I use the following…
Norberto
  • 185
  • 1
  • 2
  • 7
0
votes
1 answer

javax.imageio.IIOException: Error 2 when printing a PDF that uses CCITTFaxDecode compression in PDFBox

I'm using PDFBox to try and print pdfs (we were using java's PDF Renderer, but ran into problems with CCITTFaxDecode compressed pdfs, so we switched). However, the pdfs are all printing as blank pages. When I step through the PDFBox code, I come…
Adam
  • 101
  • 5
0
votes
1 answer

JAI installation/use

I made a Java class using JAI. The class was working fine in Netbeans. Now I have to add cmd.exe and javac. However, now the class is not working, whatever I've tried from the JAI library. Here is where I use JAI on my class. import…
Jimolrame
  • 15
  • 5
0
votes
2 answers

Reading pixel aspect ratio of TIF image in Java

I am reading in and processing TIF images using ImageIO and JAI. The results are all working perfectly, except that a number of the TIF images do not have square pixels. The aspect ratio of the pixels is being lost during the processing so the…
Tim B
  • 40,716
  • 16
  • 83
  • 128
0
votes
0 answers

Does JAI work inside an OSGI on MAC OS >10.7 + Java 1.7?

I am trying to use JAI (JAVA Advanced Imaging) API inside an OSGI Application on MAC . But it doesnt seem to load JAI and hence gets hung . Have someone succeeded in using javax.media inside osgi on mac ? Ex: Trying somthing like this ...…
Dav
  • 58
  • 1
  • 7
0
votes
1 answer

Unable to read tiff images off Networked Windows PC using JCIFS and jai imageio

I have a webapp running on Java 6 in Tomcat 6. ImageIO.read is returning null. It attempts to retrieve tiff images from a computer on the same [Windows] network. To do this, I use JCIFS as auth, and jai to read the images. In QA, this works, I…
Gavin Fitzgerald
  • 396
  • 1
  • 4
  • 14
0
votes
2 answers

Is there a way to control which pixels go black (a threshold) in a TIFF-PNG conversion with bit depth=1 (black&white)

Well, in the proccess of converting an image from TIFF to PNG format, I really want the final image to be the smallest possible so I am setting the bit depth to 1 (black&white), I am working with images of signatures. My problem is that I am…
lmiguelmh
  • 3,074
  • 1
  • 37
  • 53
0
votes
0 answers

NoClassDefFoundError: com/sun/media/imageio/stream/RawImageInputStream

guys am fed up of NoClassDefFoundError: com/sun/media/imageio/stream/RawImageInputStream error at run time. Some times it is able to find this class and sometimes not! I clean my tomcat directory, my target path again build my war file, change the…
gursahib.singh.sahni
  • 1,559
  • 3
  • 26
  • 51
0
votes
1 answer

Can a charset be specified as default for encoding ASCII in JAI TIFF field?

I'm storing strings in TIFF headers using JAI. Some strings contain characters which value is greater than 127d (e.g. 'é' is 233d). When I open the resulting TIFF file with an hex editor, I can see the byte 233d, but when I try to read it back…
Matthieu
  • 2,736
  • 4
  • 57
  • 87
0
votes
1 answer

I have a compressed tiff image file with six images compressed (not in multi pages) . I have offset and length of data for each image

I have to read a tiff image which is compressed of 6 images and separate the images into 6 different tiff files. To identify the different images I am getting offset values like this from a xml file. First image :data_offset :0 …
0
votes
1 answer

Error converting PNG to TIFF-Java

HI I am working on the following snippet which is supposed to convert my png file to tiff. String fileName = "4848970_1"; // String fileName = "color"; String inFileType = ".PNG"; String outFileType =…
log N
  • 925
  • 9
  • 33
0
votes
1 answer

java.lang.RuntimeException: Registry initialization file not found

When I work with JAI from the Eclipse (all the classes specified) it works very fine, but when I bundle everything in a jar and make a shell script file from that and try to run that script I have a problem with…
code_fish
  • 3,381
  • 5
  • 47
  • 90
0
votes
1 answer

Median Filter a bi-level image with JAI

I'd like to apply a Median Filter to a bi-level image and output a bi-level image. The JAI median filter seems to output an RGB image, which I'm having trouble downconverting back to bi-level. Currently I can't even get the image back into gray…
Mark Elliot
  • 75,278
  • 22
  • 140
  • 160
0
votes
1 answer

JAI save byte[] to .tiff file

I'm trying to save a byte[] of raw image data to a .tiff file on my harddrive with the help of the Java Advanced Imaging API. There are some minor examples on the web but they didn't help me really because they don't match my exact problem. I…