I haven’t done any tests, but does anyone know how well java performs scaling like 2048x2048 (4-8mb) JPEG images down to like 640x480 and compress it down to 300-400 kb?
I’m thinking of an server application that would perform this operation 24/7, but I can’t let it eat up all the memory or take many seconds for each image.
Here’s what I need to do:
- Open big image.
- Scale down and compress.
- Save smaller image to a new file on disk.
The reason I’m asking this is because I read some time ago that the java vm has limited memory regarding this, and I can’t load huge jpeg images into memory?