#207: new temporary thumbnail

This commit is contained in:
Benjamin Gamard 2018-03-14 20:39:32 +01:00
parent 2ac10e8127
commit 16215dde3b
4 changed files with 1 additions and 1 deletions

View File

@ -481,7 +481,7 @@ public class FileResource extends BaseResource {
decrypt = true; // Thumbnails are encrypted
if (!Files.exists(storedFile)) {
try {
storedFile = Paths.get(getClass().getResource("/image/file.png").toURI());
storedFile = Paths.get(getClass().getResource("/image/file-" + size + ".png").toURI());
} catch (URISyntaxException e) {
// Ignore
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 751 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 KiB