Download via http from
Important Please download
Source Files Updated since 1.0 for fixes
including an important fix to read large Exif headers properly. Compile
these and prepend to your CLASSPATH for the fixes.
(Source files last updated on May 13 2006)
MediaUtil - A Java API Package for Media Related Utilities
Version 1.0 Updated October 1 2005
Page Updated May 13 2006
MediaUtil is an offshoot of the
MediaChest Project to provide a
well packaged Java API for Media Related Utilities.
Below is the Current API Offering from MediaUtil.
LLJTran is an API for performing Lossless Transformations on JPEG image files
which also provides the Capability of handling Exif information.
Following are the key features:
- Supports lossless rotation, transpose, transverse and crop
- Trimming or relocating Non Transformable edge blocks similiar to
jpegtran or processing them
like regular MCU blocks.
- Reading and Modifying Image Header Information (Exif) including Thumbnail
- Built-in transformation of Thumbnail and Orientation marker
- Supports the IterativeReader and IterativeWriter interfaces in
MediaUtil's mediautil.gen.directio package enabling things like Sharing
the jpeg input file with say jkd's ImageReader while reading
- Does not Support Multi-Threading for the same Object to be
used simultaneously by more than one thread. However different threads
can have their own LLJTran Objects.
- Requires JDK 1.5
Download mediautil-1.0.zip and extract it to a suitable folder. Then
include the mediautil-1.0.jar file in your CLASSPATH. The download also includes
source under the src directory and documentation including javadocs under the
For Getting Started please see
LLJTranTutorial.java which is a
tutorial with different usage examples.
For an example on modifying GPS info in Exif see
SetGpsInfo.java (It requires
the latest fixes mentioned on top of this page).
For API reference please see the Javadocs.
See http://github.com/bkhall/AndroidMediaUtil for an Android Port of MediaUtil.
Projects using the MediaUtil API
Please inform if your project/product is using MediaUtil so that we can add it to
the below list:
Exif parsing of certain vendor specifiic formats can issue memory overflow.
Dmitriy Rogatkin (firstname.lastname@example.org)
Suresh Mahalingam (email@example.com)
MediaUtil is free to download, use, modify and redistribute for non-commercial and
and commercial purposes without any warranties of course.
Other Projects of Dmitriy
Mini Java Web Server with
Java container 2.3 API support
xBox - Bean box supporting
XML serialization (do not confuse with proposed later
an address book with float XML format of addresses and another
Other Projects of Suresh
Jambula: A Lossless Date
Stamper for Digital Pictures
AREDIS: An Asynchronous, pipelined redis client based on the Java 7 NIO Channel API