Forum Academy Marketplace Showcase Pricing Features

Image Cropper - New Plugin

This is a highly customizable Desktop and mobile friendly Image Cropper. It’s based on Cropper.js

Demo Page - https://cropper.bubbleapps.io/version-test

Editor

Plugin Page - https://bubble.io/plugin/image-cropper-1559094386979x605571718542786600

This Cropper has 4 different styles and 14 different customization options.

How to use

  1. Put the Cropper Element on your page.
  2. Fill out the properties however you want.
  3. To get your Cropped image, run the “Get Cropped Image” action.
  4. Access the cropped Image in the elements “Cropped Image” state
  5. Upload the Cropped image using the “Upload Cropped Image” action
  6. Access the Uploaded Cropped Image in the elements state “Uploaded Image”

Update the Cropper elements image source by running the action “Set Image Source” and provide the image source in the property editor.

Notes
You must always run the “Get Cropped image” workflow before you run the “Upload Cropped Image” action. You can do them in the same workflow.

Do NOT try to create a Bubble Data Object with “Cropped Image” state. It will cause your application to slowdown significantly. ALWAYS make sure you use the “Uploaded Cropped Image” state for creating an object in the database.

8 Likes

Nice!

Hey so I just subscribed to this plugin and it’s great except… it says you can completely lock the cropbox but I’m not seeing how to do that. Even when setting “Resizeable Cropbox” to “no” it still lets the user create their own cropbox and eliminates the established ratio. Am I missing something? This is kinda the whole reason I wanted this plugin…

@clinton1
I just pushed a fix for the “Drag Mode” which should solve your problem. See the example I set up here: https://cropper.bubbleapps.io/version-test/locked_crop_box

and the editor with the settings here: https://bubble.io/page?type=page&name=locked_crop_box&id=cropper&tab=tabs-1

You’ll want to set;
Aspect ratio to your desired ratio.
The “Drag Mode” property be “Move” or “None” .
And set the the “Resizable Crop Box” property to be No.
48%20PM 36%20PM

Nice plugin. An easy toggle to set cropping to rounded as in this example would be a good addition.

https://fengyuanchen.github.io/cropperjs/examples/crop-a-round-image.html

A lot of people ask how to crop rounded photos for profile pics and others.

1 Like

Yep thought this as well. I’ll add this to my list.

Great plugin. Just wondering if anyone knows how to make resizing on mobile work? In the demo gif above it appears to be working on mobile but my install and the demo page both don’t zoom/resize on mobile.

Just pushed a fix for this.

1 Like

V1.3.0 Added the ability to Rotate an Image in the Cropper

1 Like

Thanks for all the instructions so far! I am trying to set up a cropping tool as part of a form that will be submitted by users (all the data will be posted into a forum, with a photo as part of the submission so I need the user to create standard dimensions for photos).

I followed the steps above but continue to get this error when the image cropper tries to “get” the image from the source:

Any suggestions?

Update to above. I changed the workflow to update set source of image cropper when the photo uploader value was changed and still no luck. Getting a similar but different error message

Please send me a screenshot of the workflows and the cropper element itself. I’ll look into it some more.

Please send me a screenshot of the workflows and the cropper element itself. I’ll look into it some more.

Hi Steven, thanks for helping out. Here are the screenshots of the photo input form/cropper and the place where the image is supposed to show up.


And here are the workflow screenshots

Also as an update to above: I’m no longer getting the error and the image is showing in the cropper viewport but it is not saving to the “Idea” element as intended

You’ll have to switch up your workflow using the Trigger action “A Cropper Image is Uploaded”
See the example here: https://bubble.io/page?type=page&name=example&id=cropper&tab=tabs-2

This worked!! Thanks so much

Hi, we are using your plugin to crop two images on a user registration page. One for a profile picture and another for a background image like in LinkedIn or FB. The profile is working but the background is creating the following error as it attempts to crop the image. Both workflows are the same.

This is related to placing multiple Croppers on the same page. I’ve pushed the fix and now I’m just working with Bubble to get the version approved.

1 Like