TextureToBase64_v3 Op
Converts a texture into a base-64 image string
Summary (oneliner)
This can be handy if you want to send a texture as an image over an AJAXRequest. Keep in mind that this is a very slow operation, so be careful with performance.
Also note that there is an OP doing the opposite called Base64ToTexture.
Documentation (markdown)
Issues
Example patch id
Youtube ids (comma seperated)
Caniuse query
Inputs
Input texture to be converted
Trigger to do the conversion, put this behind a TriggerLimiter or TriggerOnce
Default is a PNG lossless image, this toggle asks explicitly for a JPEG
Choose whether to export a string that is only a Base64, or already as a DataUrl
Outputs
The string conversion of the texture
Gives you the status of the conversion and whether it has finished
Patches using TextureToBase64_v3
Changelog
cloned op from Ops.Gl.Textures.TextureToBase64 2023-05-24 - pandur | |
rename | Ops.Patch.Pg2VScx.TextureToBase64_2 renamed to Ops.Gl.Textures.TextureToBase64_v2 2023-05-24 - pandur |
cloned op from Ops.Gl.Textures.TextureToBase64_v2 2023-06-13 - pandur | |
added core lib: cgl_pixelreader 2023-06-13 - pandur | |
rename | Ops.Patch.P___SYovy.TextureToBase64_v2 renamed to Ops.Gl.Textures.TextureToBase64_v3 2023-06-13 - pandur |