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

Extract image metadata from byte[]

I have an image's data in an array of bytes (byte[] imgData). I'd like to get its metadata such as: Dimensions Color / Black & White File type (JPEG, PNG, ...) ... How can I do this? If there's a library I have to know about, please let me…
Alireza Noori
  • 14,961
  • 30
  • 95
  • 179
0
votes
2 answers

Subsampling image when reading using JAI

An application I have reads in quite large images (jpegs) but only needs to work with smaller images so I subsample them with something like ImageReadParam param = reader.getDefaultReadParam(); param.setSourceSubsampling(4, 4, 0, 0); img =…
vickirk
  • 3,979
  • 2
  • 22
  • 37
0
votes
1 answer

Prepending an image to the top of another image

I've been looking for a solution for the last several days. I've seen an example of composite images with Java Advanced Imaging. But that seems to be restricted by the smallest width and height of either image files. So it outputs a file with the…
Aggieborn
  • 312
  • 2
  • 8
0
votes
1 answer

How to create BufferedImage from bitmap data

After going through many similar looking questions I had no way but put my own question here. I need to display an image on swing application. The source of image is bitmap data which is retrieved from MS SQL server. I have tried the following…
Harihar Das
  • 484
  • 3
  • 11
0
votes
1 answer

Anyone have any luck writing a very fast tiff viewer/editor in Java?

I have explored several leads (sample apps) in the JAI/ImageIO arena, and have so far come up lacking in performance. It may just be that Java is not the platform for fast viewing/scaling/editing of tiff files. I am looking to produce performance…
jkaufmann
  • 924
  • 1
  • 8
  • 15
0
votes
0 answers

Tiff file after rotation lose colors

My task is to rotate a tiff image by 90°. I found a few examples of how to do this via JAI. So I wrote piece of code form an example I found: BufferedImage im = ImageIO.read(new FileInputStream(rasterFilePath)); PlanarImage pi =…
greendraco
  • 478
  • 2
  • 13
0
votes
4 answers

Storing a large image in java - tutorial

I need to save a large image on disk - so large it creates outofmemory errors (like 10000x10000 px). It's suppose to be a tiling and I have the tile stored in memory as a BufferedImage. I read something about TiledImage class being able to work only…
Haf_SK
  • 302
  • 2
  • 11
0
votes
1 answer

Creation of multi page TIFF in an applet

I have a list of images and would like to create a multi-page TIFF with them. I know it can be done using JAI but since its jar is quite big (9mb, on windows) i rather not use it, if possible (i do not like the idea of forcing the user to download…
Enoon
  • 421
  • 4
  • 17
0
votes
1 answer

Unable to write tif file from controller using ImageIO

I have the jai-imageio jar and have added it to my class path. I just don't know to write a .tif image to the response's output stream. Can someone help me? Here is my code: RenderedOp image = JAI.create("fileload",…
dmoss18
  • 867
  • 1
  • 12
  • 25
0
votes
2 answers

java pgm 2 jpeg/png

I have an int array containing gray scale values from 0-254, i also have the x and y size of the image. It is an easy thing to create an pgm image, but i want to display it in a jsp, so i need somehow to convert it to a jpeg or png image. If you…
Red33mer
  • 810
  • 3
  • 15
  • 22
0
votes
1 answer

reading image file with unknown image data *.ITW

I just want to read and load image data into Java 2D class Any hint will be great. This has been cross posted at java2D forum ( oracle forum) https://forums.oracle.com/forums/thread.jspa?threadID=2434586&stqc=true
Alan M
  • 616
  • 5
  • 15
0
votes
0 answers

Creating Thumbnail for TIFF image in JAVA

Possible Duplicate: Can't read and write a TIFF image file using Java ImageIO standard library Can someone please help with some code for creating a thumbnail for a TIFF in Java. Using this Post have created thumbnail for JPEG and PNG. I have…
Selvanayagam
  • 73
  • 1
  • 11
0
votes
1 answer

Adding an image to a TIF file in java?

I will get one image from one location and TIF file from another location. I want to add that image to the TIF file at specified location. I tried but it is overriding. So can you help me? Laxman chowdary
Mr.Chowdary
  • 3,389
  • 9
  • 42
  • 66
0
votes
1 answer

Java JAI access error in Eclipse

I'm having this error while importing JAI(Java Advanced Imaging) library. PlanarImage image = JAI.create("fileload", "image12.tiff"); It says the following error: Access restriction: The type PlanarImage is not accessible due to restriction on…
QuestionEverything
  • 4,809
  • 7
  • 42
  • 61
0
votes
3 answers

JVM crashes while image conversion using javax.media.jai

In our app, we use javax.media.JAI library to scale and improve image But sometimes (1 out of 10 times), it is causing the VM to crash # # A fatal error has been detected by the Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x00007fdb6f49140b,…
Kamal
  • 5,462
  • 8
  • 45
  • 58
1 2 3
20
21