So, I use some lib to join countable images in specific way to one single image.
This lib use Jimp library to done it and after all joins return a Jimp
object. Like this:
Jimp {
_background: 0,
bitmap: {
data: <Buffer 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ... 2359246 more bytes>,
width: 768,
height: 768
}
}
After this joining I need convert this Jimp
object to node Buffer
object without writing image as file to disc and return Buffer
to use it in next steps.
Is it possible? I cant find anything in Jimp DOCs. And when I try write Jimp.bitmap.data
to file, this image is corrupted...
Thanks!