core
    正在准备搜索索引...

    接口 GetImageInfoResult

    interface GetImageInfoResult {
        height: number;
        orientation?: string;
        path: string;
        type?: string;
        width: number;
    }
    索引

    属性

    height: number

    图片高度,单位px

    orientation?: string

    返回图片的方向

    • up 默认方向(手机横持拍照),对应 Exif 中的 1。或无 orientation 信息。
    • up-mirrored 同 up,但镜像翻转,对应 Exif 中的 2
    • down 旋转180度,对应 Exif 中的 3
    • down-mirrored 同 down,但镜像翻转,对应 Exif 中的 4
    • left-mirrored 同 left,但镜像翻转,对应 Exif 中的 5
    • right 顺时针旋转90度,对应 Exif 中的 6
    • right-mirrored 同 right,但镜像翻转,对应 Exif 中的 7
    • left 逆时针旋转90度,对应 Exif 中的 8
    path: string

    返回图片的本地路径

    type?: string

    返回图片的格式

    • unknown 未知格式
    • jpeg jpeg压缩格式
    • png png压缩格式
    • gif gif压缩格式
    • tiff tiff压缩格式
    width: number

    图片宽度,单位px