The `getBuffer` function expects a string type for the parameter `mime`, but a number is actually a valid input - if it is the constant `AUTO`. https://github.com/oliver-moran/jimp/blob/7d3fc67abf1bcb4c502a1b404decafb31b2dd0a9/packages/core/src/utils/image-bitmap.js#L195