Closed robbinjohansson closed 4 years ago
👋
Trying to use Aspect ratio | ar and I'm getting the following error:
ar
error Expected type Float, found "16:9"
This is what my code looks like:
image { fluid(imgixParams: { auto: "compress", fit: "crop", w: "400", ar: "16:9" }) { ...GatsbyDatoCmsFluid } }
If I change the ar parameter to float, e.g ar: 16.9 the error disappear but the parameter invalid, should be W:H as according to the docs.
ar: 16.9
W:H
I've tried using both fluid and fixed images.
Is this a bug in this package or am I missing something?
Thanks,
I agree with you @robbinworks :)
I think we should change this!
Fixed in 685ba3c!
👋
Trying to use Aspect ratio |
ar
and I'm getting the following error:error Expected type Float, found "16:9"
This is what my code looks like:
If I change the
ar
parameter to float, e.gar: 16.9
the error disappear but the parameter invalid, should beW:H
as according to the docs.I've tried using both fluid and fixed images.
Is this a bug in this package or am I missing something?
Thanks,