Hello,
Please check the information available on https://www.phpdocx.com/documentation/cookbook/standardize-image-size. When adding an image you need to handled width, height and dpi values; if the images don't have the same dpi we recommend you to set the same dpi updating the images or using the dpi option in addImage.
Regards.