Just for the demo/benchmark. In some applications you might not have a reason to read the file in first, so you have to rely on `sharp(filePathAsString)`. The reading of the file the first time is just so it can independently console log the size of the file it's about to test loading with sharp/jimp.
I don't get why after you read file you still pass file path to sharp and jimp instead of giving them the already read buffer, which will make it faster.
Comment
Just for the demo/benchmark.
In some applications you might not have a reason to read the file in first, so you have to rely on `sharp(filePathAsString)`.
The reading of the file the first time is just so it can independently console log the size of the file it's about to test loading with sharp/jimp.
Parent comment
I don't get why after you read file you still pass file path to sharp and jimp instead of giving them the already read buffer, which will make it faster.