You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have images located in static/img which weren't loading.
I then tried moving my images to assets/img and I still can't seem to see them?
When I run yarn run dev, should a image-styles directory be created automatically? I don't see it.
Is there some way for me to force run the creation of images? I'm still wondering if I have graphicsmagick installed correctly. I ran brew install graphicsmagick.
Any clues what I might be doing wrong?
The text was updated successfully, but these errors were encountered:
I'm trying to add dynamic image scaling to my website because I've been posting a lot of large images and it's starting to load quite slowly. The code is available on github in a branch for this feature. The site is statically deployed.
The problem is that the pivale image loader does not seem to be creating the image-styles folder in /static, and is definitely not populating it with smaller images. When running in devmode, the v-img-new component doesn't show any image in the rendered page and the dev console indicates a 404 error trying to load the correct path to the thumbnail. I've read the documentation, and added the forceGenerateImages bit to the nuxt.config.js to support lazy loading, but that doesn't seem to do anything. I am also using yarn instead of npm to the extent that matters.
GM is installed correctly on my system, and a small test program using the node GM module does work correctly, as does just calling gm from the command line.
I'm at a loss for how to debug this further or gain any insight into where the problem lies. My console doesn't show any errors or warnings for me to follow.
Any guidance or suggestions would be greatly appreciated! And a kind thank you for your work on this project!
My nuxt.config:
I have images located in
static/img
which weren't loading.I then tried moving my images to
assets/img
and I still can't seem to see them?When I run
yarn run dev
, should aimage-styles
directory be created automatically? I don't see it.Is there some way for me to force run the creation of images? I'm still wondering if I have
graphicsmagick
installed correctly. I ranbrew install graphicsmagick
.Any clues what I might be doing wrong?
The text was updated successfully, but these errors were encountered: