Compiling to PDF leaves huge spaces above graphics

I have a manuscript with a number of graphics in it. I typically save these as jpg’s from Illustrator, then insert them with the right click / insert image command. I often resize them, either by typing in a new image size in the Edit Image dialog, or by dragging the handle in the lower right corner. When I compile to PDF I often get very large spaces between the preceding paragraph and the image. I can’t find any way to change this; I’d like the images to appear spaced between the preceding and following paragraphs, with just one line of space above them. Does anyone have any thoughts as to why I’d be having this problem, and how to correct it?

Thanks in advance for any guidance!

Sorry for the delay answering; we’re just coming back from our holiday break and working to catch up.

My guess is that the compile formatting is using a greater-than-1 line-height multiple rather than a set value. That’s usually fine for text, but it means that lines with images are going to have a lot more space because the image is taller than the text.

To avoid this, you can select the images within the editor, format them exactly as you want them to appear in the compiled document–including the alignment and indentation as well as line spacing–and choose Format > Formatting > Preserve Formatting. You’ll see a dashed border around the image in the editor indicating that Preserve Formatting is applied. When compiled, these will keep the editor formatting rather than using the compile override formatting like the rest of the document.