Yes, but you must follow some strict method.
The first notion to undestand is the difference between anchor and position.
The anchor attaches your image (or more generally a frame) to some “object”. This object can be:
- the image itself when you turn it into a custom “character” (As character) where the image is inserted inside the text flow at a given location
- a character of the text (To character)
- a paragraph (To paragraph)
- or a physical page (To page)
Beware of this last option. It is a very special mode intended to bridge the gap between text processing and desktop publishing. Don’t use it routinely; it does not do what you think.
The role of the anchor is to compute on which page the frame will appear. Full stop. When you edit your text, the anchor location moves with text; therefore, the page (except To page mode) may vary. This is usually what you want. An image associated with a paragraph must remain in the “vicinity” of the paragraph.
One the page is known, position parameters are taken into consideration, except for As character because in this mode the frame is a (big) character managed by the text flow algorithm. The frame can be sent anywher in the page.
The position in the page can be constrained inside various “regions”:
- page text area (excluding margins)
- full page (no constraint)
- left or right margins
Note there is no constraint for header or footer; you must then use “full page” with absolute coordinates)
- full paragraph bounding rectangle (extending from margin to margin and including spacing above and below)
- paragraph text area
You can select separate vertical and horizontal areas. Within the selected area, you choose left, center, right alignment or absolute positioning from top/left origin of the area.
One last important setting is interaction with text: this is the wrap property. By default, Off is preselected, avoiding any complex interaction between frame and text: an area from left to right margins is reserved for the image and no text can be set here. Selecting another wrap option allows some text to be flown on either side of the image.
The only way to achieve stable and predictable position of images/frames is to design carefully frame styles. This is the most difficult aspect in Writer. It took me years to master the feature. It is very powerful but not as rock-solid as paragraph styles. In paricular, it is very sensitive to direct formatting. Resist the temptation to move an image with the mouse or resize it. Prepare them outside LO to the exact dimensions and density you need. Request the least from Writer (it is not a sophisticated image manipulation program).
Once your image is inserted into your document, apply a frame style to it and never again move it or resize it with the mouse. This would irremediably alter all the parameters, notably the “reference” and coordinates.
If you have any doubt about manual fiddling, apply another frame style, preferentially some unrelated one like Formula and reapply your required style. Otherwise your manual operation takes precedence and results in what you experience after edits or text reflow.