luwes / luwes/eleventy-plugin-sharp

Only generates one images size and source

Open
#1 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
18
Forks
2
PR merge metrics
No merged PRs in 30d

Description

I installed the plugin and setup a test case with the same code from the readme. Interesting enough, it only generates the first size (width: 1440, height: 460). It feels like using the getUrl with the resize filter somehow memorizes the given options and then applies them to all other occurrences of getUrl | Filter.

That's what the output looks like:

```




Die in rot gestrichene Bar des Wartsaal Kaffee's

```

@luwes Can you confirm that the example in the readme works the way you think it should?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the README example and reproduce the picture element using multiple getUrl resize filters. Inspect the plugin entry points handling getUrl and resize options, then verify that each generated source uses its requested dimensions rather than the first size. Done means the output contains distinct image sizes for the configured occurrences.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.