Commit 78bc7b85 authored by muhong's avatar muhong

修改 获取图片宽高

parent c19603d7
......@@ -132,7 +132,7 @@ public class MediaUtil {
public static Map<String, Object> getAspect(String image) {
Map<String, Object> map = new HashMap<>();
String[] _image = image.split("_");
String[] infoImage = _image[1].split("\\.");
String[] infoImage = _image[_image.length - 1].split("\\.");
String[] result = infoImage[0].split("x");
map.put("width", result[0]);
map.put("height", result[1]);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment