aboutsummaryrefslogtreecommitdiff
path: root/juick-server-web/src/main
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2017-11-01 01:57:08 +0300
committerGravatar Vitaly Takmazov2017-11-01 01:57:08 +0300
commit3e87cc6a73fbfc165f81d5f7a3d7d1f76e7feb9a (patch)
tree68023133cec4261e38fa9ed56d26626553847e21 /juick-server-web/src/main
parent20e19b4242f888aafe3c55f9dabe3af46728cbab (diff)
www: /post should not throw if img or attach is present
Diffstat (limited to 'juick-server-web/src/main')
-rw-r--r--juick-server-web/src/main/java/com/juick/server/util/ImageUtils.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/juick-server-web/src/main/java/com/juick/server/util/ImageUtils.java b/juick-server-web/src/main/java/com/juick/server/util/ImageUtils.java
index 7f21c0a5..4403abc0 100644
--- a/juick-server-web/src/main/java/com/juick/server/util/ImageUtils.java
+++ b/juick-server-web/src/main/java/com/juick/server/util/ImageUtils.java
@@ -19,20 +19,20 @@
package com.juick.server.util;
import org.apache.commons.imaging.ImageInfo;
-import org.apache.commons.io.FilenameUtils;
import org.apache.commons.imaging.ImageReadException;
import org.apache.commons.imaging.Imaging;
import org.apache.commons.imaging.common.ImageMetadata;
import org.apache.commons.imaging.formats.jpeg.JpegImageMetadata;
import org.apache.commons.imaging.formats.tiff.TiffField;
import org.apache.commons.imaging.formats.tiff.constants.TiffTagConstants;
+import org.apache.commons.io.FilenameUtils;
import org.imgscalr.Scalr;
import org.imgscalr.Scalr.Rotation;
import javax.imageio.ImageIO;
import java.awt.image.BufferedImage;
-import java.io.IOException;
import java.io.File;
+import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;