imagemin / imagemin-webp

WebP plugin for imagemin
MIT License
496 stars 45 forks source link

Please install the libjpeg development package before building #16

Open sunxf94 opened 5 years ago

sunxf94 commented 5 years ago

My libjpeg-devel version is 1.2.0. I run my npm with imagemin-webp, but have this error. Could you help me? I have done my best for it Error: JPEG support not compiled. Please install the libjpeg development package before building. Error! Could not process file /tmp/c7048e23-4296-4ddf-bab8-154b1f84e6c4 Error! Cannot read input picture file '/tmp/c7048e23-4296-4ddf-bab8-154b1f84e6c4'

inakianduaga commented 5 years ago

Same thing for me, failing even after installing libjpeg libjpeg-devel on a docker amazon linux image

stot3 commented 5 years ago

I also had this problem, running from google functions. I was using Node 6, I seen in later versions these had been added to Node, I upgraded to 10 runtime, and the situation was resolved. I tried alot of different plugins and packages to add compatibility and it was no good.

stot3 commented 5 years ago

What versions of node are you running?

nguyenthetoan commented 5 years ago

@stot3 hi, I'm having the same issue and my node version is now 10.15.3, could you please help me? the error message:

JPEG support not compiled. Please install the libjpeg development package before building.
Error! Could not process file 'xxx'
nguyenthetoan commented 5 years ago

I just removed my node_modules folder and it works fine now πŸŽ‰

XIOLog commented 5 years ago

On my Ubuntu system I installed package:

sudo apt-get install libglu1

I had problem with libGLU.so.1

FelixLeChat commented 4 years ago

I just removed my node_modules folder and it works fine now πŸŽ‰

Thanks @nguyenthetoan , that fixed the issue for me too

geonanorch commented 4 years ago

Possibly cwebp-bin issue #39 can explain the behavior above:

Long story short: looks like a cwebp-bin issue and a workaround might be:

xstable commented 3 years ago

I had the same issue at an docker-image with linux alpine. I solved it by installing following packages:

libjpeg 
jpeg-dev 
libjpeg-turbo-dev 
httpiga commented 3 years ago

I had this issue too on a Docker Linux image, I solved following the cwep Google guide: https://developers.google.com/speed/webp/docs/compiling#preparing_the_platform

TLDR: apt-get install -y libjpeg-dev libpng-dev libtiff-dev libgif-dev

ahmedkhan847 commented 2 years ago

anyone facing issue after installing the packages apt-get install -y libjpeg-dev libpng-dev libtiff-dev libgif-dev libwebp-dev remove your node_modules and re install packages it will work

LenaNoskova88 commented 1 year ago

Π² ΠΌΠ΅Π½Π΅ Ρ‚Π°ΠΊΠ° ΠΆ ΠΏΠΎΠΌΠΈΠ»ΠΊΠ° Error: JPEG support not compiled. Please install the libjpeg development package before building. я Π½Π° mac як Ρ†Π΅ Π²ΠΈΠΏΡ€Π°Π²ΠΈΡ‚ΠΈ

sulfab commented 10 months ago

Hello,

I use the library on a Mac Book Pro M3 (ios 14) and i face the issue. It seems that the version 1.3.2 of cwebp works but not 1.2.x and 1.1.x version.

I have this error : ERROR in Error with 'static/media/xxx.521ff10e9173ca9b5984.jpg': JPEG support not compiled. Please install the libjpeg development package before building.

I tries to clean node_modules and re install project, but nothing works.

Anyone is facing this issue ?