mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
add set_metadata, get_metadata script functions
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
Function: get_metadata
|
||||
|
||||
--Usage--
|
||||
> get_metadata(input: image)
|
||||
|
||||
Returns the metadata of an image, or an empty string if there isn't any.
|
||||
|
||||
Metadata is only stored when an image is saved as a PNG.
|
||||
It is saved in a uncompressed iTXt chunk with the key "Description".
|
||||
If the image is saved as a JPG, the metadata is lost.
|
||||
|
||||
--Parameters--
|
||||
! Parameter Type Description
|
||||
| @input@ [[type:image]] The image whose metadata we'll get.
|
||||
| @set@ [[type:set]] The active set. This can be omitted since 'set' is a predefined variable.
|
||||
Reference in New Issue
Block a user