Skip to content

Using nuxt-image module #30

@anton-karlovskiy

Description

@anton-karlovskiy

@pi0

I might be wrong but I guess there's a bug in using modifiers like so:

for (const image of this.images) {
  image.thumb = this.$img(image.file_path, {
    modifiers: {
      width: this.type === 'poster' ? 370 : 533,
      height: this.type === 'poster' ? 556 : 300
    }
  }).url;
  image.src = this.$img(image.file_path).url;
}

Could you please review the following scenarios?
modifiers
custom-provider
console

When we set width and height directly as props, it seems to work as expected (like so).
props

By taking this workaround d66ae7a, I managed to fix those broken images.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions