I am currently working in Angular with Jimp, attempting to overlay text onto an existing image. However, the image is not updating as expected.
const Jimp = require('jimp')
var _this = this;
Jimp.read("assets/TimeLine.png").then(function (image) {
Jimp.loadFont("assets/1.fnt").then(font => {
image.print(font,10, 10,'Hello world that wraps!', 12);
});
image.getBase64(Jimp.MIME_JPEG, function (err, src) {
var img = document.createElement("img");
img.setAttribute("src", src);
_this.timelineStrings = src.toString();
});
}).catch(function (err) {
console.error("! "+ err);
});
}