jpegoptim-bin
jpegoptim-bin copied to clipboard
Statically link libjpeg(-turbo?)
Trying to run imagemin-jpegoptim on AWS Lambda:
/var/task/node_modules/jpegoptim-bin/vendor/jpegoptim: error while loading shared libraries: libjpeg.so.8: cannot open shared object file: No such file or directory
There is no system libjpeg… Maybe it should be linked statically?
Yes, ideally it should, but from experience, it's not super easy to statically link binaries on Linux. Happy to receive a good pull request though.
Hello,
Just wanted to let you know I had the same issue, after installing libjpeg-turbo-devel
and rebuild the package fixed the issue.
My environment was CentOS btw.
Hope it helps.