[Poppler-bugs] [Bug 45727] ppftoppm/pdftocairo should have option for custom JPEG compression

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Aug 15 11:32:57 UTC 2017


https://bugs.freedesktop.org/show_bug.cgi?id=45727

--- Comment #8 from Adrian Johnson <ajohnson at redneon.com> ---
I don't like to keep adding parameters to a function where only a subset of the
parameters are used for each call. We already have the tiff compression
parameter and more parameters may be added in future.

Alternatively how about we use a struct for all optional parameters. eg

struct WriteImgParams
{
  int jpegQuality = -1;
  GBool jpegProgressive = gFalse;
  GooString tiffCompression;
};

SplashError writeImgFile(SplashImageFileFormat format, char *fileName, int
hDPI, int vDPI, const WriteImgParams& params);

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/poppler-bugs/attachments/20170815/bae07606/attachment.html>


More information about the Poppler-bugs mailing list