-
Notifications
You must be signed in to change notification settings - Fork 10.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for png images #756
Comments
Looks like a package didn't install correctly. You could try deleting
node_modules and rerunning npm install.
…On Sat, Mar 25, 2017, 12:05 PM Helder S Ribeiro ***@***.***> wrote:
Sorry if this is too newbie a question, but I've had the following
problem. I created a blog using the official blog starter, then went to
replace profile-pic.jpg with a png image. I replace jpg with png in
components/Bio.js, deleted the original image and added my own
profile-pic.png. That's all. Then I got this error:
ERROR in ./components/profile-pic.png
Module build failed: Error: /home/hsribei/usr/src/blog/node_modules/pngquant-bin/vendor/pngquant: error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory
at Promise.all.then.arr (/home/hsribei/usr/src/blog/node_modules/execa/index.js:201:11)
at process._tickDomainCallback (internal/process/next_tick.js:135:7)
Is this something that's missing in the package.json file? For now I just
used a jpg image and it worked, but I would like to know how to make a png
file work. Thanks!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#756>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAEVhzH4F1TTeuE24KVMzQ7utNMQZivuks5rpUlZgaJpZM4MpI_h>
.
|
I tried that, got the same error. Let me know if I can help with more information in case you want to track this. If it seems like I'm the only person having this trouble then no need to worry as I've "solved" it by using a jpg. Thanks for Gatsby btw :) |
Have you tried googling the error?
…On Sat, Mar 25, 2017, 3:32 PM Helder S Ribeiro ***@***.***> wrote:
I tried that, got the same error. Let me know if I can help with more
information in case you want to track this. If it seems like I'm the only
person having this trouble then no need to worry as I've "solved" it by
using a jpg. Thanks for Gatsby btw :)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#756 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAEVh2d7gFA42LvgVrhk_kd5K9WngBxlks5rpXnGgaJpZM4MpI_h>
.
|
Yes. This fixed it for me:
But I was wondering if this dependency could be installed along with the others. |
Seems like it's a problem with the upstream package tcoopman/image-webpack-loader#51 |
Closing as it's an upstream issue. |
I just discovered this bug today and the KEY is making sure that the path to your images folder is correct in the gatsby-config (in the plugins array): My images are in a strange place in the code I inherited!
|
Sorry if this is too newbie a question, but I've had the following problem. I created a blog using the official blog starter, then went to replace
profile-pic.jpg
with a png image. I replacejpg
withpng
incomponents/Bio.js
, deleted the original image and added my ownprofile-pic.png
. That's all. Then I got this error:Is this something that's missing in the
package.json
file? For now I just used a jpg image and it worked, but I would like to know how to make a png file work. Thanks!The text was updated successfully, but these errors were encountered: