Comments (7)
It works by adding that const, thanks :)
I know that most of these options are optional, but I like having all useful options added, despite them being optional and even if they are the default values. Because then I easily know what can be changed without looking up documentation, should I need to :)
from eleventy-plugin-img2picture.
According to the error it looks for an image /assets/images/duelhost.png
Shouldn't it be assets/images/duelhost.png without the first slash?
from eleventy-plugin-img2picture.
The eleventyInputDir
should be same as dir.input
returned in the Eleventy configuration. In case you are not setting any value for dir.input
, the default value is "."
.
""
is not a valid path. So, can you try with setting the eleventyInputDir
same value as dir.input
?
from eleventy-plugin-img2picture.
I don't define dir.input in my config.
I've just added "."
as eleventyInputDir and now I get this: https://pastebin.mozilla.org/hmbEwC2W
from eleventy-plugin-img2picture.
@Amplificator Can you share you .eleventy.js
, or is the project publicly accessible?
from eleventy-plugin-img2picture.
Let's start with the config file: https://pastebin.mozilla.org/SdhxRSDj
If you need the project I upload that later.
from eleventy-plugin-img2picture.
You don't need to provide filenameFormat
and other optional parameters. Only eleventyInputDir
, imagesOutputDir
, and urlPath
are the required options.
If you want to use the example filenameFormat
function, you need to include these lines on top of the .eleventy.js
to work:
const path = require("path");
from eleventy-plugin-img2picture.
Related Issues (10)
- Applying Sharp placeholder HOT 2
- AVIF size? HOT 5
- Plugin messes with markup when `<body>` attribute names have special characters HOT 12
- Make moving classes to picture tag optional HOT 4
- caching generated images HOT 2
- Generated AVIF images are not displayed in Chrome Canary
- `sizes` attribute from `<img>` is not replicated on `<source>`
- `TemplateWriterWriteError` when trying to use the plugin HOT 16
- Does not work for output directories not named "_site" HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eleventy-plugin-img2picture.