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

Changing the default image sizes that are generated <g-image> component #1656

Open
t9luke opened this issue Oct 18, 2022 · 0 comments
Open

Comments

@t9luke
Copy link

t9luke commented Oct 18, 2022

Summary

The default image sizes can be changed by editing this line of code let imageWidths = options.imageWidths || [480, 1024, 1920, 2560] (line 97) in the file node_modules\gridsome\lib\app\queue\ImageProcessQueue.js

It would be useful if they could be modified inside gridsome.config.js

Basic example

module.exports = {
  images: {
    imageWidths: [992, 1600, 1920, 2560, 3840]
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant