title: Create an image and write in it a text with Jimp (Node js)
body: <p>I'm starting with node and I've written this program without success. I intend to create an image with dimensions with a color, write text in the image and then save to a file. The program does everything except the text. What am I doing wrong?</p>
  
  <pre><code>let Jimp = require('jimp');
  
  let image = new Jimp(300, 530, 'green', (err, image) =&gt; {
      if (err) throw err;
  });
  
  let message = 'Hello!';
  let x = 10;
  let y = 10;
  let maxWidth = 300;
  
  Jimp.loadFont(Jimp.FONT_SANS_8_BLACK)
      .then(font =&gt; {
          image.print(font, x, y, message);
      });
  
  let file = 'new_name' + '.' + image.getExtension();
  </code></pre>