Urgent please.... how to compress a single jpeg image frame to
maintain quality and half of it's original storage size using java
source code.........
>Urgent please....
What is your budget for this 'urgency'?
(And if '0$', why should we care?)

Signature
Andrew Thompson
http://www.physci.org/
> Urgent please.... how to compress a single jpeg image frame to
> maintain quality and half of it's original storage size using java
> source code.........
public class JavaJPEGCompressor {
public final static byte[] compressImage(byte[] image) {
byte[] ret = new byte[image.length/2];
System.arraycopy(image, 0, ret, 0, ret.length);
return ret;
}
}
Exactly half the size, but I don't think it's quite a legal image. It's
also technically the same quality...
Send me $10.00 in the mail immediately for your time ;-) .

Signature
Beware of bugs in the above code; I have only proved it correct, not
tried it. -- Donald E. Knuth
Avinash wrote:
> Urgent please.... how to compress a single jpeg image frame to
> maintain quality and half of it's original storage size using java
> source code.........
Please note the earlier replies.
The Java Advanced Imaging Project
<https://jai.dev.java.net/>
advertises lossless JPEG plugins.
<http://preview.tinyurl.com/3e5dm4>
I have no experience with this API.