RPTools / maptool

Virtual Tabletop for playing roleplaying games with remote players or face to face.
http://rptools.net
GNU Affero General Public License v3.0
800 stars 262 forks source link

Feature #483, new function `createAsset` #4889

Closed Jmr3366 closed 2 months ago

Jmr3366 commented 2 months ago

Description of the Change

New trusted macro function createAsset(name,imageData) that will return an asset:\\< asset ID > value on success. Checks are made for data types and only webp,jpg,png are permitted raw data types.

Possible Drawbacks

Release Notes

Examples: [r: createAsset("Test", < raw image data >)] outputs asset:\\< asset ID >


This change is Reviewable