|
|
@ -78,15 +78,11 @@ public class FocalLengthConfigController { |
|
|
QueryWrapper<FocalLengthConfig> query1=new QueryWrapper<>(); |
|
|
QueryWrapper<FocalLengthConfig> query1=new QueryWrapper<>(); |
|
|
query1.in("config_id",meters); |
|
|
query1.in("config_id",meters); |
|
|
List<FocalLengthConfig> lists=focalLengthConfigService.list(query1); |
|
|
List<FocalLengthConfig> lists=focalLengthConfigService.list(query1); |
|
|
File file1=new File("D:\\images\\images\\img_ori.jpg"); |
|
|
|
|
|
if (!file1.getParentFile().exists()) { |
|
|
|
|
|
file1.getParentFile().mkdirs(); |
|
|
|
|
|
} |
|
|
|
|
|
if(focalLengthConfig.getRotate() == null){ |
|
|
if(focalLengthConfig.getRotate() == null){ |
|
|
focalLengthConfig.setRotate(0); |
|
|
focalLengthConfig.setRotate(0); |
|
|
} |
|
|
} |
|
|
|
|
|
BufferedImage bufferedImage=Files.bytesTobufferedImage(config.getFocalPicture()); |
|
|
BufferedImage bufferedImage=ImageIO.read(file1); |
|
|
|
|
|
int width=bufferedImage.getWidth(); |
|
|
int width=bufferedImage.getWidth(); |
|
|
int height=bufferedImage.getHeight(); |
|
|
int height=bufferedImage.getHeight(); |
|
|
File file = new File("D:\\images\\path\\config"); |
|
|
File file = new File("D:\\images\\path\\config"); |
|
|
|