|
|
@@ -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"));
|