How to make pictures fit labels automatically?

I am running Version: 7.6.2.1 (X86_64) / LibreOffice Community
Build ID: 60(Build:1)
CPU threads: 12; OS: Linux 6.6; UI render: default; VCL: kf5 (cairo+xcb)
Locale: pl-PL (en_US.UTF-8); UI: en-US
7.6.2-3
Calc: threaded
under Artix Linux.

I am trying to use labels generator to print collection of labels, to be cut later. As every label is different, I have some problems, when importing them (Insert - Image…), as they do not fit automatically, nor align properly. Manual tweaking is needed. Is there a way, macro, or plugin to have it automated? Perhaps some kind of “Picture-merge” with preset alignment?

Maybe the extension Pictool

Pictures are inserted as frames. Frames are independent from text or tables; they are a kind of “escape” mechanism from other limit constraints set by page styles, paragraphs, tables, … If frames are nested, they are however cropped to the outer frame extent. There are however parameters in the frame properties to impose constraints on the position.

If your label layout is organised through a table, paragraphs inside the cell are constrained by the cell size. You can then create a frame style requesting centering relative to paragraph text area (assuming that your images have a size smaller than cell width and height. Anchor mode for this frame style will be set To paragraph and its vertical position Top relative to paragraph text area.

All you have to do next is to paste (or insert) your image at the beginning of a paragraph inside the label cell. Apply your custom frame style to the image and it will automatically fit inside the cell.

To what kind of object do you, @petros8, want to insert the images?
Text paragraph?
TextTable cell?
Prepared (sized, positioned) TextFrame?
Shape?
What about the aspect ratio?