image-in-browser
Version:
Package for encoding / decoding images, transforming images, applying filters, drawing primitives on images on the client side (no need for server Node.js)
81 lines • 1.71 kB
JavaScript
import { WebPFormat } from './webp-format.js';
export class WebPInfo {
constructor() {
this._width = 0;
this._height = 0;
this._hasAlpha = false;
this._format = WebPFormat.undefined;
this._hasAnimation = false;
this._exifData = '';
this._xmpData = '';
this._animLoopCount = 0;
this._frames = [];
}
get width() {
return this._width;
}
set width(v) {
this._width = v;
}
get height() {
return this._height;
}
set height(v) {
this._height = v;
}
get backgroundColor() {
return this._backgroundColor;
}
set backgroundColor(v) {
this._backgroundColor = v;
}
get hasAlpha() {
return this._hasAlpha;
}
set hasAlpha(v) {
this._hasAlpha = v;
}
get format() {
return this._format;
}
set format(v) {
this._format = v;
}
get hasAnimation() {
return this._hasAnimation;
}
set hasAnimation(v) {
this._hasAnimation = v;
}
get iccpData() {
return this._iccpData;
}
set iccpData(v) {
this._iccpData = v;
}
get exifData() {
return this._exifData;
}
set exifData(v) {
this._exifData = v;
}
get xmpData() {
return this._xmpData;
}
set xmpData(v) {
this._xmpData = v;
}
get animLoopCount() {
return this._animLoopCount;
}
set animLoopCount(v) {
this._animLoopCount = v;
}
get frames() {
return this._frames;
}
get numFrames() {
return this._frames.length;
}
}
//# sourceMappingURL=webp-info.js.map