title: What is more efficiente resize an image and the convert to base64 or convert to base64 and then resize it? (node.js - no canvas)
body: <p>I have a local set of files that have to resize and then convert yo base64 (in the server side, using nodejs and without canvas support). 
  I wonder with approach is more eficient (fast and less RAM consuming):</p>
  
  <ol>
  <li>Read file to base 64 using fs.readFileSync(path, 'base64');</li>
  <li>Resize the base64 to other base64</li>
  </ol>
  
  <p>Or:</p>
  
  <ol>
  <li>Resize the image (using <a href="https://www.npmjs.com/package/sharp" rel="nofollow noreferrer">sharp</a> or a similar npm packet.</li>
  <li>Read the resized image as base64.</li>
  </ol>
  
  <p>Thank you!</p>