How to preserve aspect of images in convert-to

I’m converting images into PDF using

soffice --convert-to pdf example.jpg --headless

command and images are stretched according to page size. Is there a way how to keep aspect ratio?