If Java can’t allocate that much RAM don’t load everything at once!
Instead collect all paths via listPaths(), then loadImage() + resize() + save() 1 by 1 inside a loop:
If Java can’t allocate that much RAM don’t load everything at once!
Instead collect all paths via listPaths(), then loadImage() + resize() + save() 1 by 1 inside a loop: