zhangyuanwei / node-images

Cross-platform image decoder(png/jpeg/gif) and encoder(png/jpeg) for Nodejs
https://npmjs.org/package/images
MIT License
1.55k stars 204 forks source link

原图大小超过2m之后就无法压缩了 #251

Open 5202m opened 2 years ago

5202m commented 2 years ago

原图大小超过2m后,压缩图片就直接失败了,也没有提示任何错误

oxUnd commented 2 years ago

提供一下你的图,我看看;

5202m commented 2 years ago

原图该怎么给你呢?提供个email地址,我直接email你

hoyancy commented 2 years ago

我这边也遇到了,跟Node版本有关,版本太高异常终止控制台报错为Process exited with code 3228369023。当前node为16.17.0版本只能转换小的图片(例如158K),大点的(例如1.8M)的失败了,暂时解决方案为:用nvm把node版本切换到12.22.12(亲测可用),

itaotao commented 1 year ago

原图大小超过2m后,压缩图片就直接失败了,也没有提示任何错误

配置有给选项是设置图片最大可占内存的

myhaquanwen commented 1 year ago

图片合并过大就报错了 symbol lookup error: /****/node_modules/images/vendor/linux-x64-binding.node: undefined symbol: _ZN2v87Isolate19CheckMemoryPressureEv 怎么解决下

myhaquanwen commented 1 year ago

图片合并过大就报错了 symbol lookup error: /****/node_modules/images/vendor/linux-x64-binding.node: undefined symbol: _ZN2v87Isolate19CheckMemoryPressureEv 怎么解决下

我的nodejs版本更高(14 or 16),是不是得自己编译个

oxUnd commented 1 year ago

对,是的;

haquanwen @.***> 于2023年3月2日周四 16:19写道:

图片合并过大就报错了 symbol lookup error: /****/node_modules/images/vendor/linux-x64-binding.node: undefined symbol: _ZN2v87Isolate19CheckMemoryPressureEv 怎么解决下

我的nodejs版本更高(14 or 16),是不是得自己编译个

— Reply to this email directly, view it on GitHub https://github.com/zhangyuanwei/node-images/issues/251#issuecomment-1451470150, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAE2DG64HK32EOCUJLE5W4DW2BJZXANCNFSM5YFL3SCA . You are receiving this because you commented.Message ID: @.***>