From 477dc450dca99616fa335c155c4be9048a69deee Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Thu, 21 Jul 2016 14:03:58 +0300 Subject: www: fix Thumbnailator paths --- juick-www/src/main/java/com/juick/www/NewMessage.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'juick-www/src/main/java') diff --git a/juick-www/src/main/java/com/juick/www/NewMessage.java b/juick-www/src/main/java/com/juick/www/NewMessage.java index 63cfe3ed..a179fac8 100644 --- a/juick-www/src/main/java/com/juick/www/NewMessage.java +++ b/juick-www/src/main/java/com/juick/www/NewMessage.java @@ -373,7 +373,7 @@ public class NewMessage { String attachmentURL = "http://i.juick.com/photos-1024/" + fname; Path origName = Paths.get(imgDir, "p", fname); - Files.move(Paths.get(tmpDir, attachmentType), origName); + Files.move(Paths.get(tmpDir, attachmentFName), origName); Thumbnails.of(origName.toFile()).size(1024, 1024).outputQuality(0.9) .toFile(Paths.get(imgDir, "photos-1024", fname).toFile()); Thumbnails.of(origName.toFile()).size(512, 512).outputQuality(0.9) -- cgit v1.2.3