mandolyte / mdtopdf

Markdown to PDF
MIT License
135 stars 33 forks source link

Can you support scaling of images? #12

Closed alexellis closed 3 years ago

alexellis commented 3 years ago

Can you support scaling of images in this project? They are coming out at 100% which can be disproportional for the page, in the context of an eBook or white-paper this would be particularly useful.

mandolyte commented 3 years ago

@alexellis I looked for ways to specify in the markdown source the scaling. Found this. There doesn't seem to be any standards in how to scale images in markdown. I also checked Obsidian. Turns out it has its own way of scaling and since it supports single Markdown to PDF, it might work for your use case.

If still interested, my next step would be to adopt some "standard" that I can follow. I also need to check the gofpdf package to be sure it supports scaling in the PDF output.

Thanks for contacting me!

alexellis commented 3 years ago

Thanks for the response. FYI I tried IBIS before then moving to Pandoc and am reasonably happy with it now

monperrus commented 2 weeks ago

They are coming out at 100% which can be disproportional for the page

Hitting this problem today. Would be great to automatically resize to fit in the page.