Re-enabled stubs for PNG analyser and ICO maker, Implemented Data utils, file utils and PNG parser, Still testing
Update png-analyser.yml, png-chunk-analyser.yml, and 17 more files...
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
|
||||
import {initCore} from "../../js/nibblepoker-core.mjs"
|
||||
import {parsePngFile} from "../../libs/png-utils.mjs";
|
||||
|
||||
{
|
||||
initCore();
|
||||
|
||||
const toolId = "png-analyser";
|
||||
|
||||
const eFileInput = document.getElementById(`${toolId}-test-input`);
|
||||
|
||||
window.onload = function () {
|
||||
|
||||
eFileInput.addEventListener('change', function(e) {
|
||||
let files = e.target.files;
|
||||
|
||||
console.log(files);
|
||||
|
||||
parsePngFile(files[0]).then(pngFile => {
|
||||
console.log(pngFile);
|
||||
|
||||
console.log(pngFile.getImageHeaderChunk().getWidth());
|
||||
console.log(pngFile.getImageHeaderChunk().getHeight());
|
||||
});
|
||||
});
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user