Photo Upload - Way to Force it square?

Hi all. So I’m wondering if there is a way in Glide (free at the moment) where when an image is uploaded, if it is not square, it will prompt the user to crop it to square (ie., a forced square frame will appear and they can zoom in/out and move it to get the best aspect of the photo but in a square format). I hope my explanation makes sense.

Or is this only perhaps available in the paid version? Or perhaps it isn’t available at all??

Thanks

When you display an image in the layout editor, in the right panel you can configure the component. For images, you can set images to display in different aspects ratios, including 1:1 which means “one unit by one unit” which means square.

So you can display rectangular images as a square, and Glide achieves this by cropping the parts of the image that are sticking out of the square. The cropping only happens for display purposes, the original image isn’t actually changed.

As for creating a feature for your users that truly crops the original image, it’s probably achievable but Glide isn’t an image editing tool.

Ahh so it is done at display rather than done at upload. I will try it. Thanks.

2 Likes

Yes this is a correct take. I wouldn’t spend time too much on this.

Square is a choice already, but if you want something else, you can check the way to do it using Cloudinary.

1 Like

Yep I will stick to doing it manually as most of my users are challenged when using technology. It’s all good.

1 Like

By this I mean you can program it yourself, you don’t need to do it manually.

Why are you self-promoting here? Unsure if this is allowed :sweat_smile:

How am I self promoting?

Fk is referencing a comment that was flagged and removed. The user linked to their own site.

1 Like

Ohhhh. I didn’t even see that. No wonder I was confused :joy_cat:

2 Likes