|
|
@@ -1,7 +1,7 @@
|
|
|
package cn.reghao.tnb.oss.store.task;
|
|
|
|
|
|
import cn.reghao.jutil.jdk.shell.FFmpegWrapper;
|
|
|
-import cn.reghao.jutil.tool.media.ImageOps;
|
|
|
+import cn.reghao.jutil.jdk.image.ImageUtil;
|
|
|
import cn.reghao.jutil.jdk.model.media.MediaQuality;
|
|
|
import cn.reghao.jutil.jdk.model.media.MediaResolution;
|
|
|
import cn.reghao.jutil.jdk.model.media.AudioProps;
|
|
|
@@ -111,8 +111,8 @@ public class MediaFileProcessor {
|
|
|
|
|
|
String absolutePath = objectMeta.getAbsolutePath();
|
|
|
File file = new File(absolutePath);
|
|
|
- String format = ImageOps.getFormat(file);
|
|
|
- ImageOps.Size size = ImageOps.info(new File(absolutePath));
|
|
|
+ String format = ImageUtil.getFormat(file);
|
|
|
+ ImageUtil.Size size = ImageUtil.info(new File(absolutePath));
|
|
|
int width = size.getWidth();
|
|
|
int height = size.getHeight();
|
|
|
String objectId = imageFileId;
|
|
|
@@ -157,7 +157,7 @@ public class MediaFileProcessor {
|
|
|
String contentId = UUID.randomUUID().toString().replace("-", "");
|
|
|
String destPath = fileStoreService.genFilePath(contentId, srcFile.length(), suffix);
|
|
|
File destFile = new File(destPath);
|
|
|
- ImageOps.convert2webp(srcFile, destFile);
|
|
|
+ ImageUtil.convert2webp(srcFile, destFile);
|
|
|
|
|
|
if (destFile.exists()) {
|
|
|
ObjectResult objectResult1 = putObjectService.putObject(originalObjectName, contentId, suffix, destFile);
|