Images not resizing proportionally, any work around? #12579
Replies: 2 comments 2 replies
-
Unfortunately, your example is not reproducible. When working with "pdf" this LaTeX, use Finally, don't use bare raw contents. Use raw blocks as documented to avoid unpredictable side effects: https://quarto.org/docs/authoring/markdown-basics.html#raw-content To be clear You can share a self-contained "working" (reproducible) Quarto document using the following syntax, i.e., using more backticks than you have in your document (usually four If you have multiple files (and if it is absolutely required to have multiple files), please share as a Git repository.
Additionally and if not already given, please share the output of |
Beta Was this translation helpful? Give feedback.
-
A side note, I don't understand what is all your workflow about PowerPoint but a 10 seconds search lead me to https://m.youtube.com/watch?v=qipg8b0r67k |
Beta Was this translation helpful? Give feedback.
-
Description
Thanks for taking a look at my issue,
I am in the process of writing a scientific manuscript in quarto and will be pivoting to writing my dissertation in the next week or so, and would like to figure out a workaround for my current issue. As a chemist, there are quite a few chemical structures that are inserted as images in the body of the manuscript, but not all structures are the same size. The standard size of the structure as a vector is set in the drawing software (ChemDraw for me), there is no easy way, that I have found, to save a single structure as a .png without first copying as an .png and pasting in PowerPoint. From there I can save the image as a .png to use in the quarto document. If I use the image directly, without resizing, more often than not the image is far too large. Therefore I have been resizing the image with {width=30%}, but this is only a close approximation. As I am writing this I am realizing that {width=30%} might refer to fill or fit 30% of the page size? However, I have operating on the notion that it is reducing the image size to 30% of the original size. If I resize the image in PowerPoint before saving, using the scale height function in picture formatting, I am able to insert the images directly, but for some reason I lose resolution of the structure - there seems to be some rasterization on the rendered image. This is after I changed the settings for images: Options-->Advanced-->Image Size and Quality "Do not Compress images in file" and "Default Resolution = High Fidelity". Like I had mentioned there quite a few chemical structures that would need to be inserted in a dissertation, so I would really like to reduce the current workflow that in reality doesn't actually work. Is quarto able to rescale an image based on the image size as opposed to the rescaling to the dimensions of the page? Below is the sample of my current .qmd file with both examples of resizing. Thank you for taking the time to read and possibly help me.
And the rendered pdf.
sample.pdf
Disclaimer: Structures are not real, just quickly made to show the different sizes that I need to use
Beta Was this translation helpful? Give feedback.
All reactions