mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-01 03:54:48 +00:00
Document how to chain image operations in the image serve view (ref #908)
This commit is contained in:
parent
2a6f908972
commit
7ec734e925
1 changed files with 10 additions and 0 deletions
|
|
@ -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 a new issue