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


 

INPUT PORTS


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 ) 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


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


Patches using TextureToBase64_v4

  • Examples
  • Public
  • My Patches

Changelog


featureAdded Binary size output numberuser avatarpandur - 2024-04-02 16:23