Reputation: 1300
I am using Ghostscript on the command line to extract PDF pages as JPEGs.
Is there any switch that I can set in the command to make them progressive JPEGs or do I need to pipe it through ImageMagick or similar?
Upvotes: 1
Views: 483
Reputation: 174
2022 ... You can ;)
You convert your pdf
to jpeg
and use another lib to convert the resulted jpeg
to a progressive jpeg
Tested with GhostScript v9.55.0 and jpegtran and libjpeg-turbo-official_2.1.4
Once you have your regular JPEG file (file.jpg) you can run:
jpegtran -copy none -progressive file.jpg > file-progr.jpg
Upvotes: -1
Reputation: 31199
You can't create a progressive JPEG with Ghostscript, it doesn't support that. You will have to use some other tool to do that, I suspect your best bet is to create a TIFF and have ImageMagick convert it.
Upvotes: 1