UNPKG

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)

24 lines 1.13 kB
export var IfdValueType; (function (IfdValueType) { IfdValueType[IfdValueType["none"] = 0] = "none"; IfdValueType[IfdValueType["byte"] = 1] = "byte"; IfdValueType[IfdValueType["ascii"] = 2] = "ascii"; IfdValueType[IfdValueType["short"] = 3] = "short"; IfdValueType[IfdValueType["long"] = 4] = "long"; IfdValueType[IfdValueType["rational"] = 5] = "rational"; IfdValueType[IfdValueType["sByte"] = 6] = "sByte"; IfdValueType[IfdValueType["undefined"] = 7] = "undefined"; IfdValueType[IfdValueType["sShort"] = 8] = "sShort"; IfdValueType[IfdValueType["sLong"] = 9] = "sLong"; IfdValueType[IfdValueType["sRational"] = 10] = "sRational"; IfdValueType[IfdValueType["single"] = 11] = "single"; IfdValueType[IfdValueType["double"] = 12] = "double"; })(IfdValueType || (IfdValueType = {})); export const IfdValueTypeSize = [0, 1, 1, 2, 4, 8, 1, 1, 2, 4, 8, 4, 8]; export function getIfdValueTypeString(type) { return IfdValueType[type]; } export function getIfdValueTypeSize(type, length = 1) { return IfdValueTypeSize[type] * length; } //# sourceMappingURL=ifd-value-type.js.map