<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#c8">Comment # 8</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:ajohnson@redneon.com" title="Adrian Johnson <ajohnson@redneon.com>"> <span class="fn">Adrian Johnson</span></a>
</span></b>
<pre>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);</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>