Skip to content
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

Full-resolution images aren't generated when using the placeholder option and SSG with nuxi generate #867

Closed
Smef opened this issue Jun 13, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@Smef
Copy link

Smef commented Jun 13, 2023

When building a SSG site with Nuxt and Nuxt Image, only the "placeholder" size image is generated and the full resolution image is skipped.

Example:

  <NuxtImg
      src="home/meeting.jpg"
      width="600"
      height="400"
      format="webp"
      class="max-w-full h-auto border border-solid border-zinc-400"
      alt="Top-down view of people shaking hands around a wooden table"
      :placeholder="[60,40]"
  />

This works fine with nuxi dev but when you run nuxi generate you can see that only the placeholder image is generated. The high-res, 600x400 image is never processed.

During the generate process you can see the following line where the placeholder is generated, but this is the only time the image gets processed.

  ├─ /_ipx/f_webp&q_50&s_60x40/home/meeting.jpg (10ms)      
@danielroe danielroe added the bug Something isn't working label Jun 17, 2023
@Tragio
Copy link
Contributor

Tragio commented Jun 25, 2023

Have you tried with the RC version? I was trying to reproduce it but wasn't able to do so 🤔

@Baroshem
Copy link
Collaborator

Closing as this is an old issue.

@Baroshem Baroshem closed this as not planned Won't fix, can't repro, duplicate, stale Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants