All Collections
Plugin Questions
Custom Components
(Plugin) External Images Library
(Plugin) External Images Library

In this article, you may find out how to display an external custom image library in the Stripo Plugin.

Marina Krivenets avatar
Written by Marina Krivenets
Updated over a week ago

In case you want to display your own component with an external file system for images in the pop-up window instead of Stripo Image Library.

You can define the "externalImagesLibrary" param during plugin initialization as follows:

window.Stripo.init({
...,
externalImagesLibrary: {
openLibrary(onImageSelectCallback, onCancelCallback) {
/* Put your logic here.
Call
onImageSelectCallback({
originalName: 'YOUR_FILE_NAME.png',
resolution: '600 x 410 px',
size: '169.20 kb',
url: 'https://YOUR_STORAGE_URL/YOUR_FILE.png'
})
when user select the image from external library.
Call
onCancelCallback()
when user close the library without image selection.
*/
}
}
});

Please find a code example here to see how it works in general.


Thank you for taking the time to read our articles. We hope you will find this information helpful.

If you have any additional questions, please email us at support@stripo.email.

We would be glad to talk with you.



Did this answer your question?