Re: Fitting PDF cover image
Posted by
mojavelinux on
Dec 15, 2019; 8:04am
URL: https://discuss.asciidoctor.org/Fitting-PDF-cover-image-tp7373p7424.html
I suggested the wrong value. What you're looking for is fit=fill. That matches the previous behavior of scaling the image to fit the size of the page. That should get you on your way.
fit=cover should be scaling the image up until it covers the page entirely, but it's not currently doing that. I'll look into it.
Best,
-Dan
On Thu, Nov 28, 2019 at 6:00 AM mremond [via Asciidoctor :: Discussion] <
[hidden email]> wrote:
Hi,
Many thanks for your feedback.
I am using this image: https://www.dropbox.com/s/o10yylc4i7lp3un/cover.png?dl=0
With this directive:
:front-cover-image: image:cover.png[width=1050,height=1600,fit=cover]
It does not seems to work in latest version (but renders fines in '1.5.0.alpha.16', event without fit=cover).
I hope this helps,
-- Mickaƫl
--