Skip to main content

Get Data URL

Get just, what you need

It is possible to generate only the dataURL of the desired image and to return it. For this the method getImageDataUrl is called on the classSGL. This returns the corresponding DataURL as a promise.

An exemplary call:

 await new SGL.getImageDataUrl (
document.getElementById ('M. Mustermann'). value,
document.getElementById ('Mustercorp'). value,
'logo',
'webp'
));