PHP Code:
var Jimp = require("jimp");
var fileName = 'handshake.jpg';
var imageCaption = "Proud to be Cody's friend";
var loadedImage;
Jimp.read(fileName)
.then(function (image) {
loadedImage = image;
return Jimp.loadFont(Jimp.FONT_SANS_64_BLACK);
})
.then(function (font) {
loadedImage.print(font, 130, 72, imageCaption)
.write(fileName);
})
.catch(function (err) {
console.error(err);
});
![]()
Results 1 to 12 of 12
Threaded View
-
01-03-2019
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)