Skip to content

Fix data type of item when generating aspect ratios

Choose a tag to compare

@Sm1lEE Sm1lEE released this 11 Feb 14:11
· 8 commits to main since this release
65490bc
fix: ensure $item is an asset before getting original aspect ratio (#22)

Fixes a bug where a String (like a path) passed into the `wildcard` function would result in a type error. 

This was caused by the `getOriginalAspectRatio` call in `getFinalDimensions` because `$item` is never converted to an `AssetsAsset` (via `getAsset()`).