From cdfec5d00c99ff8d34034f289e613184602ba490 Mon Sep 17 00:00:00 2001 From: GenevensiS <66968533+G-e-n-e-v-e-n-s-i-S@users.noreply.github.com> Date: Thu, 10 Apr 2025 20:01:05 +0200 Subject: [PATCH] add docs --- doc/function/import_image.txt | 13 +++++++++++++ doc/function/index.txt | 1 + .../website/drupal/mse-drupal-modules/highlight.inc | 1 + 3 files changed, 15 insertions(+) create mode 100644 doc/function/import_image.txt diff --git a/doc/function/import_image.txt b/doc/function/import_image.txt new file mode 100644 index 00000000..f1eedab7 --- /dev/null +++ b/doc/function/import_image.txt @@ -0,0 +1,13 @@ +Function: import_image + +--Usage-- +> import_image(image_path) + +Load an image from outside the data folder. Intended for use from the CLI. + +--Parameters-- +! Parameter Type Description +| @input@ [[type:string]] Full path of the image to load + +--Examples-- +> import_image("D:/Art/Ajani.png") diff --git a/doc/function/index.txt b/doc/function/index.txt index 13ed7844..ca906790 100644 --- a/doc/function/index.txt +++ b/doc/function/index.txt @@ -93,6 +93,7 @@ These functions are built into the program, other [[type:function]]s can be defi | [[fun:rotate_image]] Rotate an image. | [[fun:drop_shadow]] Add a drop shadow to an image. | [[fun:symbol_variation]] Render a variation of a [[type:symbol]]. +| [[fun:import_image]] Load an image from outside the data folder. | [[fun:built_in_image]] Return an image built into the program. ! Cards <<< diff --git a/tools/website/drupal/mse-drupal-modules/highlight.inc b/tools/website/drupal/mse-drupal-modules/highlight.inc index 2c9f908d..984b3a4b 100644 --- a/tools/website/drupal/mse-drupal-modules/highlight.inc +++ b/tools/website/drupal/mse-drupal-modules/highlight.inc @@ -88,6 +88,7 @@ $built_in_functions = array( 'rotate' =>'', 'drop_shadow' =>'', 'symbol_variation' =>'', + 'import_image' =>'', 'built_in_image' =>'', // cards 'new_card' =>'',