1

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

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

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

How can I make the jpeg progressive?

Charles
  • 50,943
  • 13
  • 104
  • 142
gabitzish
  • 9,535
  • 7
  • 44
  • 65

1 Answers1

1

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