|
|
|
@ -19,7 +19,7 @@ public class ImageUtils {
|
|
|
|
if(newWidth==null){
|
|
|
|
if(newWidth==null){
|
|
|
|
newWidth=182;
|
|
|
|
newWidth=182;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
String directoryPath = inputImagePath.substring(0, inputImagePath.lastIndexOf("\\") + 1);
|
|
|
|
String directoryPath = inputImagePath.substring(0, inputImagePath.lastIndexOf("/") + 1);
|
|
|
|
File inputFile = new File(inputImagePath);
|
|
|
|
File inputFile = new File(inputImagePath);
|
|
|
|
String outputImagePath = directoryPath+ "thumbnail_" + inputFile.getName();
|
|
|
|
String outputImagePath = directoryPath+ "thumbnail_" + inputFile.getName();
|
|
|
|
BufferedImage bufferedImage = Thumbnails.of(inputFile).scale(1).asBufferedImage();
|
|
|
|
BufferedImage bufferedImage = Thumbnails.of(inputFile).scale(1).asBufferedImage();
|
|
|
|
|