coobird / thumbnailator

Thumbnailator - a thumbnail generation library for Java
MIT License
5.08k stars 780 forks source link

Atomic operations for bulk processing #188

Open coobird opened 2 years ago

coobird commented 2 years ago

When bulk processing operations like toFiles encounters an error part way through processing the input files, it will still output files that have been processed successfully, but will stop and not process the rest. This may be undesirable under certain circumstances, as it is basically partial state.

By having an option to enable "atomic" or "transactional" operations (i.e. you get everything or you get nothing) may be beneficial under these cases.