mirror of
https://github.com/sismics/docs.git
synced 2024-11-22 14:07:55 +01:00
#207: new temporary thumbnail
This commit is contained in:
parent
2ac10e8127
commit
16215dde3b
@ -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
|
||||
}
|
||||
|
BIN
docs-web/src/main/resources/image/file-thumb.png
Normal file
BIN
docs-web/src/main/resources/image/file-thumb.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 751 B |
BIN
docs-web/src/main/resources/image/file-web.png
Normal file
BIN
docs-web/src/main/resources/image/file-web.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.9 KiB |
Binary file not shown.
Before Width: | Height: | Size: 3.4 KiB |
Loading…
Reference in New Issue
Block a user