Thanks for including the Cropper Component. Really appreciate it. I would like to use the component but configure my own buttons. Especially since the cropper Component will be small (profile pic) and the default buttons at the top and bottom wrap and are constrained within the cropper container. I would prefer to manage the location of the Add, Clean and Save buttons myself.
If I select to not show the top buttons. How do I use codeless to create the Add Image functionality and the Save functionality using my own buttons?
I do not see any Cropper Action in Codeless to Add an Image by showing the local device file browser window.
Also for me to create my own Save button, I think I use the Get Cropped Canvas from Cropper action in Codeless which returns HTMLCanvasElement. Can you tell me how to get the Crop image which I thought should be a Blob from the Cropper component and send it to Backendless storage using File APIs (Save File? or something else).
Really appreciate that the Cropper component now exists with so many features but I would like to control its user interface a little more. Particularly the Add/Get image and Save image actions/buttons.
Thanks for including the Cropper Component. Really appreciate it. I would like to use the component but configure my own buttons. Especially since the cropper Component will be small (profile pic) and the default buttons at the top and bottom wrap and are constrained within the cropper container. I would prefer to manage the location of the Add, Clean and Save buttons myself.
Unfortunately, this functionality doesn’t exist for now but thank you for the proposal. We created an internal ticket to implement that and will notify you when it will be done(BKNDLSS-31638). As a temporary solution, we could offer you to use our buttons but style them using Less variables or raw CSS.
Also for me to create my own Save button, I think I use the Get Cropped Canvas from Cropper action in Codeless which returns HTMLCanvasElement. Can you tell me how to get the Crop image which I thought should be a Blob from the Cropper component and send it to Backendless storage using File APIs (Save File? or something else).
As for creating your own Save button, you can use the Custom Code block. Below is the logic which you could use to achieve that.
Thank you for the update on the Cropper Component particularly the “Get Cropped Image” and “Upload Image to Cropper” actions. I have been trying to use the component but I don’t think in its current configuration it will work for me. Can I ask your advice or help on the below issue please?
I want the Cropper tool to scale the image within a defined image size. I don’t know of anyway to force the cropper component to show the image and crop functionality within a given pixel size of width x height. I placed the cropper in a block with the width and height set to 300x300. I put a border around the block component to show it.
Next I open an image that is higher than it is wider and the cropper component keeps the scale of the image and goes outside the block size of 300x300 and extends the image over the buttons.
I would really appreciate if you could tell me if it is possible to configure the cropper component in UI Builder to look like the below image and maintain an image within a fixed size view similar to the below diagram. In this case 300x300. Note the crop edge demonstrated here is only for show. My Question focuses on maintaining the image and crop within a defined width and height