Image compression in LibreOffice using command line

I am trying to use LibreOffice command line options to compress the image. However, I am unable to compress the image & it always gives the same image size. I am using below command for compression-

./office/opt/libreoffice5.4/program/soffice --headless --convert-to png:writer_png_Export:resolution=300 /app/tests/files/excel_single_sheet.xlsx --outdir /tmp/

Please let us know the suggestions.

Regards,
Sumant.

Just use dedicated tools in the pipeline, such as imagemagick, to perform tasks that are suitable for such dedicated tools, not for office suite.