image_url Twig filter
The image_url filter is an alias for the file_url filter. It behaves the same way.
It's in place because some developers may find it more obvious to use the image_url filter when using the image CDN pipeline to modify the image. You can pass all of the same options that you can with the modify method on an image object.
This filter is unique to Aptuitiv. It is not part of the core Twig functionality.
Example
This example shows how the image_url filter can be used to modify an image with the image pipeline.
This filter would only be used if all you have is the URL or path for an image. If you have the full image object then use the image pipeline methods on the image object to modify it.
{% set image = 'images/max-lissenden-tJxu4j4-T4o-unsplash.jpg'|image_url({
width: 400,
height: 200,
crop: true,
negative: true
}) %}
<p><img src="{{ image }}" /></p>