First, I would like to say I'm not an image processing specialist.
I would like to convert image colorspace from one to another, and change icc color profile at the same time. I managed to do it using JMagick (the ImageMagick Java port), but no way in pure Java (even using JAI).
...
Hi all! I am trying to install JAI (Java Advanced Imaging) 1.1.3 in my Vista 64 and it says that in order for it to be installed JDK 1.3 and up must be installed. The problem is that I have already installed the latest JDK for Win64 and it seems that it is not willing to work with it.
I would like to know if there are any severe conseque...
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
<dependency>
<groupId>com.sun.media</groupId>
<artifactId>jai_imageio</artifactId>
<version>1.1</version>
</dependency>...
I want to save some java.awt.Image objects into the disk. But when I try like:
for (Image image : images) {
image = new ImageIcon(image).getImage();
BufferedImage temp = new BufferedImage(image.getWidth(null), image.getHeight(null), BufferedImage.TYPE_INT_RGB);
Graphics2D g = temp.createGraphics();
g.drawImage(image, 0, ...
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 suggest jai, than please tell me at which classes to look, or how to actually do it in jai.
...
Hi,
I am having difficulty using the Java JAI (Java Advance Imaging) API to change the resolution of a JPEG image from lets say 1024x800 to 512x400.
I have played around with the API and keep receiving stream or outofmem exceptions.
Anyone with a working example.
Thanks
...
I'm trying to run Java Advanced Imaging (JAI) within an OSGi container (spring-dm). I'm able to access the JAI libraries, but receive the following error when I call JAI for the first time:
Error: Could not load mediaLib accelerator wrapper classes. Continuing in pure Java mode.
Occurs in: com.sun.media.jai.mlib.MediaLibAccessor
com.s...
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 similar to Irfanview, but so far haven't found what I am looking for.
JAI\ImageIO seems p...
Hi,
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 = reader.read(0);
However, due to a bug in the jpeg reader that does not handle some meta dat...
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 color-space, my code looks like this:
BufferedImage src; // contains a bi-level image
Para...
Hi,
I was wondering if anyone has any experience getting JAI to auto install from an applet for multiple platforms. I've looked at
http://java.sun.com/j2se/1.4.2/docs/guide/plugin/developer%5Fguide/extensions.html#specifying
And it seems to imply (by the fact nothing to the contrary is mentioned) I can only specify an single platform...
We're using JAI (https://jai-imageio.dev.java.net/) to scale and crop images in Java. We would like to create round corners on our images. How do we do that?
The images are JPG and PNG. I would think it's easier to do this with JPGs?
The image is a PlanarImage from JAI
PlanarImage src = JAI.create(...,...);
which can be transformed...
I'm running into problems using AWT classes on OSX (10.5.8) with Java 6 (1.6.0_17 JVM: 14.3-b01-101).
Trying to load java.awt.Dimension the code just freezes, this happens in Eclipse or from the command line. Anyone experiencing same problems ?
The class is used by JAI in the following code:
public static byte[] resizeAsJPG(byte[] imag...
I have a bunch of images on a server. When client requests url for image, the client can specify to either receive the full image or get a thumbnail of the image. So, I'm looking to implement a servlet type solution that processes request, and generates thumbnail on demand if needed. It needs to support jpg, gif, tif, png.
It looks like...
Here is the simplified version of the problem:
SomeClass c = (SomeClass) obj.getSomeClassParent()
not always but it happens sometimes to trigger exception
org.somepackage.SomeClass can't be cast to org.somepackage.SomeClass
How is this possible ? I suppose it has something to do with the fact that JAI imageio is native lib,...
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 across this code in PDCcitt.java:
public BufferedImage getRGBImage() throws IOExceptio...
I'm working on a project which deals with image processing and I don't have a great deal of know-how about image processing in JAVA. I've recently started using "Java Advanced Imaging" for manipulating images.
I'm facing problem in applying "layer mask" to images.
I have to use a "layer mask" in my application much like the layer masks...
Hi there,
I'm trying to build an application that encodes and resize images off any type of image and store it as a JPEG.
The current url -> http://gn.vinea.es/inmo.nsf/vwimagen/2031225200800143/$File/f225200800143.JPG
is a kind of weird jpeg and use for testing.
For some reason JAI cannot render this image as a JPEG. I use the foll...
Hello.
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?
...
Hello!
I try to save the tiff instead of coloure gray-scaled. How could I do this? (JAI must be used, because it is a tiff!)
Thanks a lot in advance & Best Regards.
...