|
@@ -60,7 +60,7 @@ public class ImageCompression {
|
|
|
|
|
|
public static void rotate(File in, File out, int degree) throws IOException {
|
|
public static void rotate(File in, File out, int degree) throws IOException {
|
|
BufferedImage image = ImageIO.read(in);
|
|
BufferedImage image = ImageIO.read(in);
|
|
- Thumbnails.of(image).scale(1f).rotate(degree).toFile(out);
|
|
|
|
|
|
+ Thumbnails.of(image).scale(1f).outputQuality(1f).rotate(degree).toFile(out);
|
|
}
|
|
}
|
|
|
|
|
|
public static void imageThumbnail(File in,File out,ImageCompressionConfig config) throws IOException{
|
|
public static void imageThumbnail(File in,File out,ImageCompressionConfig config) throws IOException{
|