code: function getTargetSize(size, buffer) {
    size *= 1000000; // Converting to MB to B.
  
    // 10% is default.
    buffer = 1 + (buffer ? buffer / 100 : 0.1);
  
    return Math.round(size * buffer);
  }
docs: Gets the desired file size for the resize.
  @param {number} size Desired size in MB.
  @param {number} buffer Range of tolerance for target size, 0-100.
  @returns {number} Desired file size in bytes.