Fill Image Object with Image i.e. Cover

WordPress
September 12, 2022 10:05:02
AGM
Topics: 4
Messages: 8
Hi,
I've set up an image object on my template that takes a user-submitted image from Pods and places it on the document:
[e2pdf-wp key="image_no_2" path="0" attachment_image_url="true" size="full"]

I'm running into issues however with the image not filling up the entire frame if the uploaded dimensions are too small. I can get the image to stretch but this distorts it. What I'm looking for is the image should completely fill the box, retaining aspect ratio, and cropping any excess on the sides that is too big to fit.

I see the option to "contain" and "fill" but is there any way to "cover" and cut off anything that doesn't fit in the aspect ratio?

Thanks
September 12, 2022 10:50:27
E2Pdf
Topics: 7
Messages: 3617
Support
Hi,

Unfortunately, E2Pdf currently can't crop images or "fill" image objects with keeping the "aspect" ratio. We will review adding such a possibility.

We remain at your service.

We would really appreciate your feedback at WordPress.org!
Get News and Updates
Our monthly newsletter keeps you in the loop, so you'll always be up to date with the latest news and updates about E2Pdf.
* You can update your email subscription preferences here.
All trademarks, service marks, trade names, product names, and logos appearing on this website are the property of their respective owners. The use of trademarks such as Formidable Forms®, Forminator Forms®, Gravity Forms®, JetFormBuilder®, WordPress®, WooCommerce®, WPForms® and others is solely for identification purposes (nominative use) and does not imply any affiliation, sponsorship, or endorsement by the respective trademark holders.
© 2017 - 2026, https://e2pdf.com

We use cookies to collect and analyse information on site performance and usage, to provide social media features and to enhance and customise content and advertisements. By clicking "Accept Selected", you consent to use of selected cookies according to our Cookie Policy.