Use JAI to handle multiple image formats
Brought to you by:
eerruu
You might want to take a look at Sun's Java Advance
Imaging (JAI) APIs. They provide the ability to read
and write more file types than just JPEG & GIF. They
also have thumbnailing operations built into them, and
other common operations.
They also allow you to embed metadata directly into the
image, and allow you to embed the thumbnails into the
image as well. This is very useful when you don't want
to add additional files just to display thumbnails.
Logged In: YES
user_id=471212
The thing I don't like about the JAI, is that it's a native library that is not included in the standard jdk / jre.
So piXflow will not work on all java installations anymore... Maybe a good idea would be to detect if JAI is
installed and if yes pixflow could make use of it. (Btw. jdk can handle a little bit more than just JPEG & GIF.)
I don't like the idea of adding the thumbnails to the original files, since I don't want to touch or alter the
originals from i.e. my digital camera.
Logged In: YES
user_id=84783
JAI has both native and pure-Java components to it. Like
JMF the user can choose which version they want to use. It
makes no difference to the developer.
The reason I mentioned embedding the metadata and thumbnail
into the picture is that it helps insure that the image
contains everything, rather than having separate files that
have to managed. If it was an option, to either embed or
not, that would give most users enough flexibility to choose.
Logged In: YES
user_id=471212
This starts to make sense to me. I will have a look at this one as soon I have worked through the pending
tasks!