<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - ppftoppm/pdftocairo should have option for custom JPEG compression"
href="https://bugs.freedesktop.org/show_bug.cgi?id=45727#c9">Comment # 9</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - ppftoppm/pdftocairo should have option for custom JPEG compression"
href="https://bugs.freedesktop.org/show_bug.cgi?id=45727">bug 45727</a>
from <span class="vcard"><a class="email" href="mailto:aacid@kde.org" title="Albert Astals Cid <aacid@kde.org>"> <span class="fn">Albert Astals Cid</span></a>
</span></b>
<pre>(In reply to Adrian Johnson from <a href="show_bug.cgi?id=45727#c8">comment #8</a>)
<span class="quote">> 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);</span >
That works for me.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>