TextureToBase64_v5 Op

TextureToBase64

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_v5
Visibility
  • Core Op - Official cables op
License
  • MIT
AuthorTest Patches


INPUT PORTS


Trigger (Trigger)

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

Texture (Object:texture)

Input texture to be converted

Format index (Number:integer ) PNG  JPEG  WEBP 
Quality (Number)
Output dataUrl (Number:boolean )

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

OUTPUT PORTS


next (Trigger)
Binary Size (Number)
Base64 string (String)

The string conversion of the texture

Loading (boolean Number)

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

Finished (Trigger)

Patches using TextureToBase64_v5

  • Examples
  • Public
  • My Patches

Changelog


featureAdded Binary size output numberuser avatarpandur - 2024-04-02 16:23
improvementUpdate only after texture has changeduser avatarpandur - 2024-05-22 10:51