saschanaz / libflif.js

Another trial to get FLIF to the web platform
ISC License
41 stars 2 forks source link

Documentation #10

Open saschanaz opened 7 years ago

tamzinselvi commented 6 years ago

@saschanaz could you please share your build / emscripten settings? would love to add support for 3 channel images

saschanaz commented 6 years ago

Jakefile.js is the build script, you can npm install jake -g and run jake.

tamzinselvi commented 6 years ago

what version of emscripten / node / python are you using?

saschanaz commented 6 years ago

You can use the Emscripten SDK where Node 4 and Python 2.7 are provided as built-in.

tamzinselvi commented 6 years ago

hmm... the jakefile is using es6 and node 4.1.1 doesn't have implicit harmony support does it? are you using a different node build than the bundled emscripten one?

saschanaz commented 6 years ago

Ah yes, the jakefile depends on Node.js 8+ which should also be compatible with emscripten.

saschanaz commented 6 years ago

(Node.js 4 does support ES2015 anyway, but the jakefile uses ES2017)

tamzinselvi commented 6 years ago

Thanks for being so responsive @saschanaz, I got it building yesterday. Turns out there were some tweaks to be made for OSX building. Are you on Linux or Windows?

saschanaz commented 6 years ago

I'm mostly on Windows but also have access to Linux. Are there some problems on OSX?