timse / srcset-loader

Flexible srcset-loader for webpack
46 stars 14 forks source link

"ratio" output is inverted #14

Closed tremby closed 6 years ago

tremby commented 6 years ago

For a portrait image (500 wide, 634 tall) I'm getting back a ratio from myimg.placeholder.ratio of 1.268. This is backwards. Aspect ratios are usually presented as width divided by height, so this should be 500/634, not the other way around.