I want to convert a bunch of Webp images to individual PDFs. I'm able to do it with this command:
parallel convert '{} {.}.pdf' ::: *.webp
or I can use this FFMPEG command:
find ./ -name "*.webp" -exec dwebp {} -o {}.pdf \;
However during the process of conversion the Webp files are decoded and the resultant PDFs have a much bigger file size. When I use the above commands for JPG-to-PDF conversion the PDF size is reasonably close to the JPG image size.
This command works fine with JPGs, but the program img2pdf doesn't work with the Webp format:
find ./ -name "*.jpg" -exec img2pdf {} -o {}.pdf \;
I also tried Webp-to-PDF conversion with this online service, but the PDF was huge.
How can I keep the PDF size down to the Webp file size?