jpeg image compression using java source code

A

Avinash.Masal

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.........
 
J

Joshua Cranmer

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 ;-) .
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top