0 Replies Latest reply on Oct 28, 2015 1:44 PM by oliverIntergrafika

    How can i get the image data of a selection?

    oliverIntergrafika Level 2

      I need to write out an asset as a base64 encoded image into the css part of an html.


      My first try was to export the layer as a .jpg and read back its content with a File object. Base64 encode it and put it into the css like this:




      But seem like i need the uncompressed image data, not the byte content of the exported .jpg file.


      Is there a way to get the RGBA matrix of a selection or clipboard to be able to encode it as Base64?