Skip to content
This repository has been archived by the owner on Feb 6, 2024. It is now read-only.

K-Adam/DrekDecoder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DrekDecoder

Installation

npm i drek-decoder

Usage

Command line interface:

node cli.js convert ./IMG.DRK -o ./img.png

Node.js:

var Decoder = require('drek-decoder');

Decoder.readFile('./IMG.DRK')
    .then(img => {

        // Export the first frame
        let selected_frame = 0;
        let canvas = img.frames[selected_frame].generateImageData();

        Decoder.writePng(canvas, './img.png').then(() => {
            console.log("File saved");
        });

    })
    .catch(error => console.error(error.message))
;

About

DREK ( .drk ) image decoder

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published