Skip to content

meepen/vtflib.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vtflib.js

Create, edit and modify VTF files.

Code heavily based on VTFLIb by Nemesis.

Usage

const { VTFFile, VTFImageFormatType } = require(".");
const { readFileSync, writeFileSync } = require("fs");

let readdata = new VTFFile(readFileSync("./in.vtf"));

let image = readdata.getImages().reverse()[0];

// image.toRGBA8888()

readdata.setImage(image.convert("DXT5"));

writeFileSync("./out.vtf", readdata.toBuffer());

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published