public class ImgMetaUtil extends Object
| Constructor and Description |
|---|
ImgMetaUtil() |
| Modifier and Type | Method and Description |
|---|---|
static int |
getOrientation(File file)
获取图片文件旋转角度
|
static int |
getOrientation(InputStream in)
获取图片旋转角度
|
public static int getOrientation(File file) throws IORuntimeException
file - 上传图片IORuntimeException - IO异常public static int getOrientation(InputStream in) throws IORuntimeException
in - 图片流IORuntimeException - IO异常Copyright © 2025. All rights reserved.