We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Re: let customers crop uploaded photos

let customers crop uploaded photos

clank22
Visitor
1 0 0

There's another page that selling the same items that has this photo cropping mechanism where they have a set square that the picture crops to and in an outside border that shows part of the picture that will wrap around the magnet and let the customer know that that part will be the edges I will include photo

Replies 3 (3)

PaulMartin
Shopify Partner
632 61 151

Hey Clank,

 

For that, you'll need to integrate an outside library or service into your theme. Cropper.js and Croppie.js are examples of such integration.

Creating content for the Shopify Community 🙂
paulmartinlopez.com
Small_Task_Help
Shopify Partner
1144 55 112

Hi,

Hope this will help

- Let customer upload an image.
- Use Cropper.js to give them a draggable, square crop area.

Example Javascript:

const uploadInput = document.getElementById('upload');
const image = document.getElementById('image');

uploadInput.addEventListener('change', (event) => {
  const file = event.target.files[0];
  if (!file) return;

  const reader = new FileReader();
  reader.onload = (e) => {
    image.src=e.target.result;
    image.style.display = 'block';
    initCropper();
  };
  reader.readAsDataURL(file);
});

- Add a dotted overlay (wrap-area) that shows “edge” area.
- Export both cropped image and wrapped area for the final design.

To Get Shopify Experts Help, Click Here or E-mail - hi@ecommercesmalltask.com
About Us - We are Shopify Developers India
At Google My Business - Ecommerce Small Task - Hire Shopify Developers Ahmedabad

Easify-Jennifer
Explorer
71 2 4

Hi @clank22 

You might want to try Easify Product Options – it allows customers to upload and crop their images directly on the product page, with a live preview of how it will look. It’s a simple way to help them visualize the final result before placing the order, and it’s easy to set up without needing any custom code. Here's how it work:

  • This is the result:

EasifyJennifer_1-1750924931013.png

EasifyJennifer_0-1750924792411.png

  • This is the app setting:

To let your customers edit their uploaded image, simply select "Enable Image Editor" here:

EasifyJennifer_2-1750924981927.png

 

And to let your customers see the final product in real time, simply click "Enable Live Preview" in the Product Personalizer.

EasifyJennifer_4-1750925314437.png

I hope this answer helps solve the problem. If you need further assistance, feel free to reach out to Easify anytime! 🤗