-
Notifications
You must be signed in to change notification settings - Fork 500
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scale images in PDF relative to its original size #1933
Comments
This would entail implementing support for the |
Somewhat related to this, I was wondering, if it is possible to globally scale all images relative to their defined width as well. For the html version, I've set a dimensionless width argument for all my images (e.g. It would be great if something like One important thing here is that this should only act on actual images, not mathematical formulas inserted as quasi-block images (I've noticed that setting |
… on pdfwidth attribute on block image
… on pdfwidth attribute on block image
… on pdfwidth attribute on image
… on pdfwidth attribute on image
… on pdfwidth attribute on image
I implemented this by adding support for the scale attribute (e.g., |
Now all options to scale images are relative to the width of the content area (https://asciidoctor.org/docs/asciidoctor-pdf/#image-scaling).
I'd like to have an option to scale the image based of it's original size (1300px => 100% of the width, 650px => 50% of the width for example, 325px => 25%, etc)
Prawn seem to be able to do it (https://prawnpdf.org/docs/0.11.1/Prawn/Images.html) with scale argument.
The text was updated successfully, but these errors were encountered: