PDF到ppm保存渐进式jpg

时间:2021-10-26 21:19:09

I'm trying to convert a PDF to jpg images, but I want the images saved as progressive jpgs.

我正在尝试将PDF转换为jpg图像,但我希望将图像保存为渐进式jpgs。

I'm using pdftoppm to do this. This is the command :

我正在使用pdftoppm来做到这一点。这是命令:

$imageExecCommand = 'pdftoppm -jpeg -cropbox -r 100 -f ' . $pageToCopy . ' -l ' . $pageToCopy . ' ' . $localPdf . ' ' . SERVER_ROOT . '/files/' . $hash;

$ imageExecCommand ='pdftoppm -jpeg -cropbox -r 100 -f'。 $ pageToCopy。 '-l'。 $ pageToCopy。 ''。 $ localPdf。 ''。 SERVER_ROOT。 '/ files /'。 $散列;

How can I make the jpeg progressive?

如何让jpeg渐进式?

1 个解决方案

#1


1  

Use pdftoppm command Then Iterate the generated ppm files, then run convert Image.ppm to Image.jpg using imagemagick

使用pdftoppm命令然后迭代生成的ppm文件,然后使用imagemagick将Image.ppm转换为Image.jpg

#1


1  

Use pdftoppm command Then Iterate the generated ppm files, then run convert Image.ppm to Image.jpg using imagemagick

使用pdftoppm命令然后迭代生成的ppm文件,然后使用imagemagick将Image.ppm转换为Image.jpg