Element to Image (Action) is the only action given in this plugin. You need to call the action in the Workflow to convert to an image any given element by ID.
This action contains the following properties to be used:
- Element ID: the defined ID of a Bubble element. To be able to add an ID to the element you will first need to expose the option in Settings -> General -> General Appearance
The ID global attribute defines an identifier (ID) which must be unique in the whole document as defined by Mozilla
- File Name: set the name of the file. Don't include extension like .png or .jpg
- Render Option: select between png, jpeg in which will be the format the image will be rendered.
- Scale: a number indicating image scaling resolution quality. The higher the number the higher the image size and resolution of the element, which will also increase it's storage size. Default is 7.
After running the action in the workflow, the image will automatically download into the user's local Downloads.
Element to Image is the only Element given in this plugin. Add this element into your Editor to manipulate the image internally in your app (it won't download automatically any image). Useful to store the image in Database or to save it for later use.
The element contains the following properties to be used:
- Element ID: the defined ID of a Bubble element. To be able to add an ID to the element you will first need to expose the option in Settings -> General -> General Appearance
The ID global attribute defines an identifier (ID) which must be unique in the whole document as defined by Mozilla
- File Name: set the name of the file. Don't include extension like .png or .jpg
- Render Option: select between png, jpeg in which will be the format the image will be rendered.
- Scale: a number indicating image scaling resolution quality. The higher the number the higher the image size and resolution of the element, which will also increase it's storage size. Default is 7.
To successfully get the Image element, you will also need to run the
Get ElementDomtoImage Action, which will become available under
Element Actions when a Element Dom to Image element is present.
Next you need to add the Event
ElementDOMtoImage is ready and the Image will be available.
To acces it just add an Action where an Image can be added (for example Display Data) and the option This ElementDOMtoImage's Image will be available with the rendered image. For a clear example, please visit Bubble Editor
This are step-by-step instructions on how to get the plugin working on any Bubble App.
- Add this plugin to your application.
- Add a Workflow action, for example 'When a button is clicked'.
- Search in the actions for Element DOM to Image.
- Go to Settings, then go to General -> General Appearance and check the option Expose the option to add an ID attribute to HTML elements.
- Go to the Design tab and select any element. Scroll to the bottom of the Property Editor and define an ID (for example group_1).
- Go back to Workflow tab and write the ID you just defined in the Element DOM to Image Action, under Element ID property.
- Define a file name for the image (for example my_image) but don't add extension.
- Select a render option (for example jpeg).
- Set the scale of the rendering (for example 7)
- Run the Workflow Action and the image will automatically download into local storage.