title: (Node.JS Jimp) How do I center my text?
body: <p>I have a 500px by 167px image and I want to add 2 lines of text but those need to be centered, how can I do it? I'm using node.js and the jimp package, the last line will always be changing length as in a different username!</p>
  
  <pre><code>Jimp.read("./imgs/background.png").then(function (image) {
          image.resize(500, Jimp.AUTO)
          .quality(100);
          image.write("./imgs/background-test.png");
  
        Jimp.loadFont(Jimp.FONT_SANS_32_WHITE).then(function (font) {
  
          //What do I do here? image.print(font, x, y, "Welcome Username", 7)
  
          image.getBuffer(Jimp.MIME_PNG, (err, buffer) =&gt; {
            image.write("./imgs/background-test.png");
          })
        });
  
        }).catch(function (err) {
          console.error(err);
        });
  </code></pre>