dani sm wrote:Yes. I tried. It writes the image with original size and also with .jpg extension. But while doing image processing with tesseract OCR it gets the below exception as i said before.
javax.imageio.IIOException: Not a JPEG file: starts with 0x89 0x50
This exception arises when i am trying to save the image with original size. If i save the image with reduced size using ImageIO
ramnna jain wrote:In my application I allow to save an image file of type jpeg.
But when I save it, I found the file size reduced means the loss of image quality.
Guillermo Ishi wrote:
Always use png instead of jpg. Jpg is lossy compression and png compression is lossless. No significant difference in file size.