Cropping generated images manually to a fixed aspect ratio
-
Hello,
I would like to add image cropping to the Gutenberg block I’m developing.
So I would upload an image and then crop separate images each with their own aspect ratio. I can’t rely on the automated cropping as it won’t always pick the best part of the image in each case.I would envisage defining a number of images (probably 4) complete with aspect ratio using add_image_size(). Then, crop the uploaded image to create the images previously defined. The cropping box should fix the aspect ratio for each image as defined.
I have used a plugin ‘manual image crop’:
(https://www.ads-software.com/plugins/manual-image-crop/)
which does exactly this but it hasn’t been updated for 5 years.Obviously, I would prefer to stick to well-supported plugin that will hopefully be around for a while.
If anyone knows of such a plugin or has any tips or ideas I’d be really grateful.
Best Regards,
Steve
- The topic ‘Cropping generated images manually to a fixed aspect ratio’ is closed to new replies.