[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 18:11:02 UTC 2017


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

--- Comment #9 from Albert Astals Cid <aacid at kde.org> ---
(In reply to Adrian Johnson from comment #8)
> 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);

That works for me.

-- 
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/e62d0268/attachment.html>


More information about the Poppler-bugs mailing list