@hyperbytes/wappler-summernote-externalize-embedded-images
v1.1.9
Published
extract and externalize base64 images from a summernote output
Maintainers
Readme
Initial release Full details herre: https://community.wappler.io/t/custom-module-node-externalize-base64-images-in-summmernote-output/64184
This extension takes a summernote output. It will scan for base64 encoded images within and will extract them and save to teh folder of your choice To ensure uniqueness each image filaname is prefixed with a UUID value the refences are then re-written to image links to the externalised images To mainatain compatibility with summernote file uplaods, the class "note-file-clip" is added to each image link in addition, an array containing details of each image processed is output: Sample output:
{
"status": 200,
"externalized": "<p><img src=\"/test/16db6cdb-2a04-43ff-85b2-376fe5099500.png\" class=\"note-file-clip\"><br></p>",
"images": [
{
"filename": "16db6cdb-2a04-43ff-85b2-376fe5099500.png",
"fullPath": "E:\\webs\\myapp\\public\\test\\16db6cdb-2a04-43ff-85b2-376fe5099500.png",
"publicUrl": "/test/16db6cdb-2a04-43ff-85b2-376fe5099500.png"
}
]
}a return status of 403 indicates that the data sent may have been truncated due to server $_POST size limits.
