Skip to content
Snippets Groups Projects
Commit 6814c1e9 authored by Alexis de Lattre's avatar Alexis de Lattre
Browse files

FIX image injection test and update documentation

parent 01649b1e
No related branches found
No related tags found
1 merge request!37FIX image injection test and update documentation
docs/source/images/image_injection.png

51.5 KiB | W: | H:

docs/source/images/image_injection.png

55.4 KiB | W: | H:

docs/source/images/image_injection.png
docs/source/images/image_injection.png
docs/source/images/image_injection.png
docs/source/images/image_injection.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -148,5 +148,5 @@ ...@@ -148,5 +148,5 @@
mime_type (required) mime_type (required)
the image's file type. the image's file type.
height (optional) height (optional)
the desired height for the image (e.g. '1.3cm'). the desired height for the image with the unit of measure (e.g. '1.3cm').
width (optional) width (optional)
...@@ -152,7 +152,7 @@ ...@@ -152,7 +152,7 @@
width (optional) width (optional)
The desired width for the image (e.g. '2.55cm'). The desired width for the image with the unit of measure (e.g. '2.55cm').
isb64 (optional) isb64 (optional)
Whether the image data should be interpreted as base64-encoded bytes instead of raw bytes. Whether the image data should be interpreted as base64-encoded bytes instead of raw bytes.
keep_ratio (optional) keep_ratio (optional)
Whether the aspect ratio of the image should be kept. If you use keep_ratio=True (which is the default), you should use either the option 'height' or 'width' (using both doesn't make sense in this case). Whether the aspect ratio of the image should be kept. If you use keep_ratio=True (which is the default), you should use either the option 'height' or 'width' (using both doesn't make sense in this case).
...@@ -154,8 +154,10 @@ ...@@ -154,8 +154,10 @@
isb64 (optional) isb64 (optional)
Whether the image data should be interpreted as base64-encoded bytes instead of raw bytes. Whether the image data should be interpreted as base64-encoded bytes instead of raw bytes.
keep_ratio (optional) keep_ratio (optional)
Whether the aspect ratio of the image should be kept. If you use keep_ratio=True (which is the default), you should use either the option 'height' or 'width' (using both doesn't make sense in this case). Whether the aspect ratio of the image should be kept. If you use keep_ratio=True (which is the default), you should use either the option 'height' or 'width' (using both doesn't make sense in this case).
Possible unit of measures: **cm**, **mm**, **in**, **pt**, **pc**, **px** and **em** (the OpenDocument format uses the unit of measures defined in the section §5.9.13 of the `XSL specifications <https://www.w3.org/TR/2001/REC-xsl-20011015/slice5.html#section-N8185-Definitions-of-Units-of-Measure>`_).
Use format functions Use format functions
~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~
......
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment