- Improved image conversion options: -j/--jpeg and -g/--grayscale.
- The -j/--jpeg option converts images to JPEG format before including them in the output PDF file, resulting in a smaller file size.
- The -g/--grayscale option converts images to grayscale to reduce the size of the resulting PDF file.
- The program outputs the converted image in the specified format and compresses the PDF file accordingly.