Skip to content

Commit

Permalink
fix: image ratio calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
farnabaz committed Nov 3, 2020
1 parent 845579b commit b88bb9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/nuxt-image-mixins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export default {
}

if (this.meta.width && this.meta.height) {
return (this.meta.width / this.meta.height) * 100
return (this.meta.height / this.meta.width) * 100
}

return 0
Expand Down

0 comments on commit b88bb9c

Please sign in to comment.