Change image resolution via java code

0

asked by anonymous 24.10.2016 / 14:38

1 answer

0

There's always a way, take a look at the Thumbnailator library, do exactly what you need and do not write too much code.

Example:

Thumbnails.of(new File("imagem.jpg"))
    .size(500, 500)
    .toFile(new File("nova_imagem.jpg"));
    
24.10.2016 / 16:51