gif-frame-count
Version:
在前端项目内获取GIF图片时长、帧数等信息(可在任意一个基于JS开发的框架中运行),包括小程序和app
23 lines (20 loc) • 447 B
text/typescript
import { frameImageType } from "@/type/GifInfoType";
export class FrameImage {
public imageInfo: frameImageType;
constructor() {
this.imageInfo = {
identifier: "0", // 帧标识(当前为第几帧画面)
localPalette: false,
localPaletteSize: 0,
interlace: false,
comments: [],
text: "",
left: 0,
top: 0,
width: 0,
height: 0,
delay: 0,
disposal: 0
};
}
}