mirror of
https://github.com/wagtail/wagtail.git
synced 2024-12-01 11:41:20 +01:00
Document how to chain image operations in the image serve view (ref #908)
This commit is contained in:
parent
2a6f908972
commit
7ec734e925
@ -75,6 +75,16 @@ And here's an example of this being used in a view:
|
||||
'image_url': generate_image_url(image, 'fill-100x100')
|
||||
})
|
||||
|
||||
|
||||
Image operations can be chained by joining them with a ``|`` character:
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
return render(request, 'display_image.html', {
|
||||
'image_url': generate_image_url(image, 'fill-100x100|jpegquality-40')
|
||||
})
|
||||
|
||||
|
||||
Advanced configuration
|
||||
======================
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user