dengsixing недель назад: 3
Родитель
Сommit
2bd7ba44ba

+ 3 - 1
src/main/java/com/fdkankan/scene/service/impl/SceneProServiceImpl.java

@@ -183,7 +183,9 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
             Map<String, String> uploadMap = new HashMap<>();
 
             //切图
-            String fragmentCmd = "vips dzsave --tile-size "  + tileSize + " " + origFilePath + " " +  workPath;
+            String fragmentCmd = "vips copy " + origFilePath + "[autorot] " +workPath + "--dzsave";
+//            String fragmentCmd = "vips dzsave --tile-size "  + tileSize + " " + origFilePath + " " +  workPath;
+            log.info("fragmentCmd:{}" + fragmentCmd);
             CmdUtils.callLine(fragmentCmd);
             if(!ComputerUtil.checkComputeCompleted(dziPath, 5, 200)){
                 throw new BusinessException(ErrorCode.FAILURE_CODE_5052);