简体   繁体   English

有人使用lepton-NodeJs压缩JPG

[英]Somebody Has used the lepton-NodeJs for compression JPGs

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. 我想压缩一些JPG以更新到数据库,此代码是我在文档中找到的唯一内容,但是我看不到需要上传到数据库中的内容,我知道它是file.lep,但我不知道在哪里接受它。 https://github.com/whitef0x0/node-lepton https://github.com/whitef0x0/node-lepton

在此处输入图片说明

Read the documentation: 阅读文档:

These functions takes a callback that returns an error object and the output in form of a binary file blob. 这些函数采用回调函数,该回调函数以二进制文件Blob的形式返回错误对象和输出。

The data parameter is exactly what you're looking for. data参数正是您要寻找的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM