kopia lustrzana https://github.com/wagtail/wagtail
Document how to chain image operations in the image serve view (ref #908)
rodzic
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
|
||||
======================
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue