-
Notifications
You must be signed in to change notification settings - Fork 38
can't we use "openbadges-bakery" in Node version above 0.10.30 #14
Comments
Having sort of the same issue I think. bakery.bake(options, function (err, data) { Saves the file with the .png extension but with the text undefined. console.log(data) in the callback outputs undefined. |
Did anyone find a way to bake image using nodejs ?? @campbell-thinkingcap @akshayporwal |
It would be good to know before diving into openbadges if this library is still actively being supported or maintained. Did any of you figure out how to bake images or did you look for other solutions? |
I can confirm that this issue still happens with png images. SVG's seem to work though. |
Hey folks, this library hasn't been updated in a long time. It needs some work to make it compatible with newer versions of node. It also doesn't support the latest |
This is basically a dupe of the only other open issue too #13 |
Hi @auralon — on a more general note, is openbadges still something people use or is it an abandoned project? |
@iamgoodbytes openbadges are definitely still in use, yes! The new spec came out recently. Platforms like Acclaim are growing in popularity, and it's at the very core of their business model. Just because this library is old, and (currently) incompatible with the latest badge spec, don't let it put you off! :) |
Thanks for sharing your thoughts @auralon ! |
I submitted an issue to IMS to see if they will support this library. 1EdTech/openbadges-specification#248 This issue has been open in Bit Writer since 2015: I suspect we'll have to get some community volunteers to pick this up. My nodeJS is kinda rusty. Anyone want to jump in and work with me on it? |
I made a pr here: brianloveswords/streampng#17 The test script fails but the updates to the packages seem to produce a valid baked badge that I uploaded and tested here: https://badgecheck.io/ Would love to see if someone else can try this and get the tests working. If @brianloveswords can't get back to this, we can fork a new version. Update: a fork is being hosted here https://github.com/OpenWorksGroup/openbadges-bakery/ it references this fork https://github.com/OpenWorksGroup/streampng which is where the updates were needed. Confirmed it works with node v9.6.1 but tests fail. |
Hi Team,
We can't use "openbadges-bakery" module in higher version of node like above v6.
Please help me i am facing issue from last 3 days. Its working fine with version 0.10.30. but if i am using v7.10.0 then it is not working .
Error msg :
on\node_modules\bitwriter\index.js:357
var len = this.length;
^
TypeError: Method get TypedArray.prototype.length called on incompatible receive
r [object Object]
at BitWriter.get length [as length] ()
at BitWriter.makeArrayLike [as _makeArrayLike] (C:\Users\aporwal\Documents\V
isual Studio 2015\Projects\CrudOperation\CrudOperation\node_modules\bitwriter\in
dex.js:357:17)
at BitWriter.setupBuffer (C:\Users\aporwal\Documents\Visual Studio 2015\Proj
ects\CrudOperation\CrudOperation\node_modules\bitwriter\index.js:72:8)
at BitWriter.initialize (C:\Users\aporwal\Documents\Visual Studio 2015\Proje
cts\CrudOperation\CrudOperation\node_modules\bitwriter\index.js:58:8)
at new BitWriter (C:\Users\aporwal\Documents\Visual Studio 2015\Projects\Cru
dOperation\CrudOperation\node_modules\bitwriter\index.js:10:19)
at BitWriter (C:\Users\aporwal\Documents\Visual Studio 2015\Projects\CrudOpe
ration\CrudOperation\node_modules\bitwriter\index.js:9:12)
at new Output (C:\Users\aporwal\Documents\Visual Studio 2015\Projects\CrudOp
eration\CrudOperation\node_modules\streampng\lib\chunks\base.js:161:17)
at constructor.outputPrepare [as _outputPrepare] (C:\Users\aporwal\Documents
\Visual Studio 2015\Projects\CrudOperation\CrudOperation\node_modules\streampng
lib\chunks\base.js:155:13)
at constructor.makeBuffer [as _startOutput] (C:\Users\aporwal\Documents\Visu
al Studio 2015\Projects\CrudOperation\CrudOperation\node_modules\streampng\lib\c
hunks\international-text.js:38:21)
at constructor.out (C:\Users\aporwal\Documents\Visual Studio 2015\Projects\C
rudOperation\CrudOperation\node_modules\streampng\lib\chunks\international-text.
js:23:19)
The text was updated successfully, but these errors were encountered: