You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If an asset has no transforms then this function returns a string of the asset file name so its not easy testing if transforms exists with a simple boolean.
I cant find any documentation about detection of Optimize images on an asset within a twig.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have some assets with Optimized images, and some without.
When I show an asset, I want to detect if I can use setTransform() or not.
If an asset has no transforms then this function returns a string of the asset file name so its not easy testing if transforms exists with a simple boolean.
I cant find any documentation about detection of Optimize images on an asset within a twig.
All assistance welcome.
Beta Was this translation helpful? Give feedback.
All reactions