There are multiple approaches to achieve this purpose as listed below:
1. Graphics2D - Uploaded File to File compression
2. Graphics2D - BlobDomain to BlobDomain
3. ImageWriter - Uploaded File to File
Of these method, I prefer Graphics2D for image compression through java better image quality and control over final image size. Using ImageWriter, I got compression to a percentage of original size but it was not exact and even the image quality was deteriorating.
1. Graphics2D - Uploaded File to File compression
2. Graphics2D - BlobDomain to BlobDomain
3. ImageWriter - Uploaded File to File
Of these method, I prefer Graphics2D for image compression through java better image quality and control over final image size. Using ImageWriter, I got compression to a percentage of original size but it was not exact and even the image quality was deteriorating.
No comments:
Post a Comment