[poppler] [PATCH] JPEG support for pdftoppm

Albert Astals Cid aacid at kde.org
Mon Sep 7 15:16:06 PDT 2009


A Dilluns, 7 de setembre de 2009, Stefan Thomas va escriure:
> Hey folks,
> 
> I added a -jpeg switch to pdftoppm. It's heavily based on the -png
> switch, I was more or less just copy&pasting replacing libpng with libjpeg.
> 
> Maybe you can use it.
> 
> It's not heavily tested, but it seems to work fine.
> 
> Open issues are:
> 
> - Properly integrate error handling
> - Add more options (such as JPEG quality)
> 
> I may add those myself if I find the time.

Error handling is necessary, quality options is "a plus"

On the other hand it is "a must" that you merge writePNGFile and writeJpegFile 
functions since they are virtually the same. Basically a private 
writeFileWithWriter(FILE *f, Writer *w) and PNGWriget and JpegWriter 
inheriting from the same base class.

Albert
 
> 
> Cheers,
> 
> Stefan
> 



More information about the poppler mailing list