How To Get Customers To Upload The Correct Image Size
You need customer photos for a listing page, and each image should end up at 1200 × 800 pixels. But customers upload photos in every shape and size. How do we get a consistent result without asking them to edit files before filling out the form?
Let’s make the required size part of the upload process instead.
Why Instructions Aren’t Enough
We could write “Upload a 1200 × 800 image” next to the file field. That tells customers what we expect, but for most people that might be quite a challenge. A phone photo might be much larger and taller than the space available on the listing page. A smaller photo might have the correct aspect ratio but have too few pixels to look good.
Customers shouldn’t have to open an image editing app. We want to help them crop the image while they’re on the webpage, and prevent them from uploading images that are too small. This is where CropGuide comes in.
Set The Size You Need
For our listing example, we need a 3:2 image at 1200 × 800 pixels. In the CropGuide dashboard, we can set the Crop aspect ratio to 3:2, set the Output size to 1200 × 800, and set a Minimum image size that makes sense for the images we need to receive.
These settings do different jobs. The aspect ratio controls the shape of the crop. The output size controls the dimensions of the image sent to the form. The minimum size stops someone from submitting a photo that doesn’t have enough pixels to meet our requirements.
If you’re unsure what minimum to use, start with the size your listing actually needs and test with a few typical customer photos. The right minimum depends on how you’ll use the image.
What Happens When A Customer Uploads A Photo?
The customer selects a photo in your existing upload field. CropGuide opens the photo before the form uploads anything, showing the required crop in the editor. The customer can move and zoom the photo to choose the perfect crop matching your requirements. The zoom is limited to your minimum size.
If the photo is too small, CropGuide tells them while they’re still filling out the form so they can choose another one. If the photo is valid the customer confirms the crop and the form receives the prepared image. The form still uploads to the same destination as before, there’s no need for any changes on the backend.
The customer doesn’t need to work out what 3:2 means or resize the file on their phone. They can see the result and adjust it right on the webpage.
Add CropGuide To Your Existing Forms
We don’t need to create a new upload form. Create a CropGuide account, set the image requirements in the dashboard, and copy the script for your website. For a typical website, the script goes in the page header before </head>:
<script>
(function (w, d) {
w.$cropguide = ['GFFFYQ'];
var s = d.createElement('script');
s.async = true;
s.src = 'https://cdn.cropguide.io/l.js';
d.head.append(s);
})(window, document);
</script>
The installation guide walks through the setup, and the integration guides cover specific website builders.
That’s it. Customers can select a photo as usual, adjust it to fit, and submit an image sized for the listing. Try the CropGuide demo to see our editor in action.