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
12 September, 2022 10:50:27
E2Pdf
Support
Topics: 7
Messages: 3331
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!
We use tools, such as cookies, to enable essential services and functionality on our site and to collect data on how visitors interact with our site, products and services. By accepting cookies you are agreeing to our Cookie Policy.