import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.imageio.*;
import java.awt.image.BufferedImage;
import java.io.File;
public class ImageUtils {
private static Logger LOGGER = LoggerFactory.getLogger(ImageUtils.class);
/**
* 逆时针旋转90度
* @param imgFile
* @return
*/
public static boolean rotate90AW(String imgFile)
{
try {
File file = new File(imgFile);
BufferedImage bi = ImageIO.read(file);
int width = bi.getWidth();
int height = bi.getHeight();
BufferedImage biFlip = new BufferedImage(height, width, bi.getType());
for (int i = 0; i < width; i++)
for (int j = 0; j < height; j++)
biFlip.setRGB(j, width - 1 - i, bi.getRGB(i, j));
String format = imgFile.substring(imgFile.lastIndexOf(".") + 1);
ImageIO.wri