Giter Club home page Giter Club logo

Comments (7)

Amplificator avatar Amplificator commented on June 4, 2024 1

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.

Amplificator avatar Amplificator commented on June 4, 2024

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.

saneef avatar saneef commented on June 4, 2024

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.

Amplificator avatar Amplificator commented on June 4, 2024

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.

saneef avatar saneef commented on June 4, 2024

@Amplificator Can you share you .eleventy.js, or is the project publicly accessible?

from eleventy-plugin-img2picture.

Amplificator avatar Amplificator commented on June 4, 2024

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.

saneef avatar saneef commented on June 4, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.