Skip to content

New function base64.encode.asset - #6020

Open
Baaaaaz wants to merge 1 commit into
RPTools:developfrom
Baaaaaz:feature/2981-base64-encode-asset
Open

New function base64.encode.asset#6020
Baaaaaz wants to merge 1 commit into
RPTools:developfrom
Baaaaaz:feature/2981-base64-encode-asset

Conversation

@Baaaaaz

@Baaaaaz Baaaaaz commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

Identify the Bug or Feature request

closes #2981

Description of the Change

new MT script function base64.encode.asset

Possible Drawbacks

Currently only does assets that are images.
No equivalent decode function provided as either natively handled in html (but webview performance on doing this sucks), or decoding could/should be handled via the createAsset() function instead (which may need to be adjusted to handle data URI prefixes).

Documentation Notes

new MT script function``base64.encode.asset` for converting asset images to base64, params are:

  1. asset id
  2. optional true/false add data URI prefix (default=false) i.e. "data:MIME type/MIME subtype;base64,"

Release Notes

New base64.encode.asset function


This change is Reviewable

@github-actions github-actions Bot added the feature Adding functionality that adds value label Aug 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature Adding functionality that adds value

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Way to get raw image data of an asset

1 participant