cables is under heavy development.
There might be one or another bug, please let us know about it!

TextureToBase64_v4 Op


Converts a texture into a base-64 image string

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.

Edit Documentation

Full Name
  • Ops.Gl.Textures.TextureToBase64_v4
  • Core Op - Official cables op
AuthorTest Patches



Texture (Object:texture)

Input texture to be converted

Trigger (Trigger)

Trigger to do the conversion, put this behind a TriggerLimiter or TriggerOnce

Format index (Number:integer )
Quality (Number)
Output dataUrl (Number:boolean )

Choose whether to export a string that is only a Base64, or already as a DataUrl


Base64 string (String)

The string conversion of the texture

Loading (boolean Number)

Gives you the status of the conversion and whether it has finished

Usages of TextureToBase64_v4

  • Examples
  • Public
  • My Patches
  • Ops


cloned op from Ops.Gl.Textures.TextureToBase64user avatarpandur - 2023-05-24
renameOps.Patch.Pg2VScx.TextureToBase64_2 renamed to Ops.Gl.Textures.TextureToBase64_v2user avatarpandur - 2023-05-24
cloned op from Ops.Gl.Textures.TextureToBase64_v2user avatarpandur - 2023-06-13
added core lib: cgl_pixelreaderuser avatarpandur - 2023-06-13
renameOps.Patch.P___SYovy.TextureToBase64_v2 renamed to Ops.Gl.Textures.TextureToBase64_v3user avatarpandur - 2023-06-13
cloned op from Ops.Gl.Textures.TextureToBase64_v3user avatarpandur - 2023-11-23
renameOps.Patch.PWnb2ZL.TextureToBase64_v4 renamed to Ops.Gl.Textures.TextureToBase64_v4user avatarpandur - 2023-11-23