TextureToBase64_v5 Op

TextureToBase64

Converts a texture into a base-64 image string


<p>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.</p> <p>Also note that there is an OP doing the opposite called Base64ToTexture.</p>


Full Name
  • Ops.Gl.Textures.TextureToBase64_v5
Visibility
  • Core Op - Official cables op
License
  • MIT
AuthorgithubTest Patches








No op example found on this server

INPUT PORTS


Trigger (Trigger)

<p>Trigger to do the conversion, put this behind a TriggerLimiter or TriggerOnce</p>

Texture (Object:texture)

<p>Input texture to be converted</p>

Format index (Number:

<i>integer</i>

)
 PNG  JPEG  WEBP 
Quality (Number)
Output dataUrl (Number:

<i>boolean</i>

)

<p>Choose whether to export a string that is only a Base64, or already as a DataUrl</p>

OUTPUT PORTS


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

<p>The string conversion of the texture</p>

Loading (

<i>boolean</i>

Number)

<p>Gives you the status of the conversion and whether it has finished</p>

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
bugfixFixed bug: was not updating output in all casesuser avatarpandur - 2024-08-08 11:33