mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-08-29 02:36:11 -06:00
Correção com chatwoot
This commit is contained in:
parent
7960f0de7a
commit
f58e792506
@ -2100,10 +2100,10 @@ export class ChatwootService {
|
||||
const nameFile = `${random}.${mimeTypes.extension(mimeType)}`;
|
||||
const fileData = Buffer.from(imgBuffer.data, 'binary');
|
||||
|
||||
const img = await Jimp.read(fileData);
|
||||
await img.cover(320, 180);
|
||||
const img = await Jimp.fromBuffer(fileData);
|
||||
img.cover(320, 180);
|
||||
|
||||
const processedBuffer = await img.getBufferAsync(Jimp.MIME_PNG);
|
||||
const processedBuffer = await img.getBuffer('image/png');
|
||||
|
||||
const fileStream = new Readable();
|
||||
fileStream._read = () => {}; // _read is required but you can noop it
|
||||
|
Loading…
Reference in New Issue
Block a user