Somebody Has used the lepton-NodeJs for compression JPGs

64 Views Asked by At

I want compress some JPGs for update to the DB, this code is the only thing I found with documentation but I do not see what it is that needs to be uploaded to the database I know it's the file.lep but I do not know where to take it. https://github.com/whitef0x0/node-lepton

enter image description here

1

There are 1 best solutions below

0
On

Read the documentation:

These functions takes a callback that returns an error object and the output in form of a binary file blob.

The data parameter is exactly what you're looking for.