ソースを参照

이미지 생성 수정

yujung 4 年 前
コミット
fd30d46991

+ 10 - 9
src/main/java/com/style24/front/biz/web/TsfCommonController.java

@@ -112,15 +112,16 @@ public class TsfCommonController extends TsfBaseController {
 		if (StringUtils.isEmpty(policy)) {
 			policy = "default";
 		}
-		int orientation = 1;
-		Metadata metadata = ImageMetadataReader.readMetadata(convert(file));
-		
-		Directory directory = metadata.getFirstDirectoryOfType(ExifIFD0Directory.class);
-		if(directory != null) {
-			orientation = directory.getInt(ExifIFD0Directory.TAG_ORIENTATION);
-		}
-		
-		log.info("orientation: {}", orientation);
+//		2021-10-19 김유중 : 이미지 중복 생성 제거 (root,filepat)
+//		int orientation = 1;
+//		Metadata metadata = ImageMetadataReader.readMetadata(convert(file));
+//
+//		Directory directory = metadata.getFirstDirectoryOfType(ExifIFD0Directory.class);
+//		if(directory != null) {
+//			orientation = directory.getInt(ExifIFD0Directory.TAG_ORIENTATION);
+//		}
+//
+//		log.info("orientation: {}", orientation);
 		String targetPath = GagaFileUtil.getConcatenationPath(env.getProperty("upload." + policy + ".target.path"), subDir);
 
 		GagaFileUploadUtil fuUtil = new GagaFileUploadUtil(targetPath, Long.parseLong(env.getProperty("upload." + policy + ".max.size")), env.getProperty("upload." + policy + ".allow.extension"), env.getProperty("upload." + policy + ".view"));