Image Transforms for getImg() function #3563
Labels
assets 📁
features related to asset management
enhancement
improvements to existing features
site development 👩💻
features related to website/API development
The ability to pass an image transform to an asset's
getUrl()
,getWidth()
, andgetHeight()
methods is pretty awesome and I use it a lot.It'd be even more awesomer if you could add the ability to pass an image transform to an asset's
getImg()
method.That way, I could write
{{ asset.getImg('transform') }}
instead of
<img src="{{ asset.getUrl('transform') }}" width="{{ asset.getWidth('transform') }}" height="{{ asset.getHeight('transform') }}" alt="{{ asset.title }}">
.Thanks.
The text was updated successfully, but these errors were encountered: