<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body><div>Hi Marcin,<br></div>
<div> </div>
<div>the check could just check for LIBJPEG_TURBO_VERSION<br></div>
<div> </div>
<div>jconfig.h:<br></div>
<div> </div>
<div>#define JPEG_LIB_VERSION 62<br></div>
<div> </div>
<div>/* libjpeg-turbo version */<br></div>
<div>#define LIBJPEG_TURBO_VERSION 1.3.1<br></div>
<div> </div>
<div>More on libjpeg-turbo thread-safety: <a href="http://sourceforge.net/p/libjpeg-turbo/mailman/libjpeg-turbo-users/thread/4EFF4E78.8090000@users.sourceforge.net/">http://sourceforge.net/p/libjpeg-turbo/mailman/libjpeg-turbo-users/thread/4EFF4E78.8090000@users.sourceforge.net/</a><br></div>
<div> </div>
<div>Cheers,<br></div>
<div>Ondrej<br></div>
<div> </div>
<div>On Wed, Dec 17, 2014, at 21:06, Marcin Owsiany wrote:<br></div>
<blockquote type="cite"><div dir="ltr"><div>Hi,<br></div>
<div> </div>
<div>I would like to be able to load images in parallel in different threads using imagemagick. This was made possible by IM upstream not so long ago with "original" libjpeg as a result of this thread: <a defang_rel="noreferrer" href="http://www.imagemagick.org/discourse-server/viewtopic.php?f=2&t=25495">http://www.imagemagick.org/discourse-server/viewtopic.php?f=2&t=25495</a> - note it spans two pages.<br></div>
<div> </div>
<div>However their libjpeg version check is rather strict, so they do not cover linking against libjpeg-turbo (which exports JPEG_LIB_VERSION=62).<br></div>
<div> </div>
<div>As I heard there is some tension between libjpeg and libjpeg-turbo developers, and I don't know imagemagick's upstream position on that, I would first like to ask for your advice on how to approach this problem. I suppose making sure that libjpeg-turbo's thread-safety guarantees are no worse than recent libjpeg's is one thing, but another is how to change the preprocessor version check in imagemagick's source so both libjpeg implementations are covered.<br></div>
<div> </div>
<div>Marcin<br></div>
</div>
</blockquote><div> </div>
<div id="sig19760093"><div class="signature">--<br></div>
<div class="signature">Ondřej Surý <ondrej@sury.org><br></div>
<div class="signature">Knot DNS (https://www.knot-dns.cz/) – a high-performance DNS server<br></div>
<div class="signature"> </div>
</div>
<div> </div>
</body>
</html>