<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><blockquote type="cite" class="">Are there no existing libraries that can be conditionally linked with for supporting these formats? In the long term, it seems like bad design to have WebKit have its own custom decoders.<br class=""></blockquote></div><div class="">Yes. there are of course. libwebp, libjxr are available on linux based systems and also seem available on mac and Windows. [1]</div><div class="">Both are BSD license so that there is no license issue to port them for any platforms if necessary.</div><div class="">I’m not telling about inventing new wheels for them, but adding a kind of a glue layer in webkit as png, gif and png supports do. ;) (e.g PNGImageDecoder.* JPEGImageDecoder.*)</div><div class=""><br class=""></div><div class="">[1]&nbsp;<a href="https://developers.google.com/speed/webp/download" class="">https://developers.google.com/speed/webp/download</a></div><div class="">&nbsp; &nbsp; &nbsp;<a href="https://jxrlib.codeplex.com/releases/view/107208" class="">https://jxrlib.codeplex.com/releases/view/107208</a></div><div class="">&nbsp; &nbsp; &nbsp;<a href="https://packages.debian.org/wheezy/webp" class="">https://packages.debian.org/wheezy/webp</a></div><div class="">&nbsp; &nbsp; &nbsp;<a href="https://packages.debian.org/sid/utils/libjxr-tools" class="">https://packages.debian.org/sid/utils/libjxr-tools</a></div><div class=""><br class=""></div><br class=""><div class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><span class="Apple-style-span" style="font-family: Helvetica, '맑은 고딕', verdana, 돋움, arial, 굴림체; color: rgb(97, 97, 97); font-size: x-small;"><font color="#1f497d" size="2" class="">ChangSeok</font></span><br class=""></div></div>
</div>
<br class=""><div><blockquote type="cite" class=""><div class="">On Mar 20, 2015, at 2:21 PM, Myles C. Maxfield &lt;<a href="mailto:mmaxfield@apple.com" class="">mmaxfield@apple.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class="">Are there no existing libraries that can be conditionally linked with for supporting these formats? In the long term, it seems like bad design to have WebKit have its own custom decoders.<br class=""><br class="">If that isn't an option, it seems fine to me provided that the decoders' sources are all close together (for some definition of close) and not peppered throughout WebKit.<br class=""><br class=""><blockquote type="cite" class="">On Mar 19, 2015, at 9:38 PM, ChangSeok Oh &lt;<a href="mailto:changseok.oh@collabora.com" class="">changseok.oh@collabora.com</a>&gt; wrote:<br class=""><br class="">Hi WebKittens.<br class=""><br class="">I just saw apng support landed on webkit main stream. [1] (even it works for gtk port only now)<br class="">So I suddenly wonder if webkit community is getting interested in bringing other modern image formats like webp or jpeg-xr into webkit.<br class="">If so, I can lend my hands for it.<br class=""><br class="">For webp support, as you know, we can reuse blink's codebase. [2]<br class="">For jpeg-xr supprot, I have a rough sketch for it [3] (it might be outdated or not fit tot of webkit though, bringing it to webkit is just a piece of cake. ;))<br class=""><br class="">My intention is not to argue which format is better, just to ask community's thoughts, preferences &nbsp;or like that.<br class=""><br class="">[1] <a href="https://bugs.webkit.org/show_bug.cgi?id=17022" class="">https://bugs.webkit.org/show_bug.cgi?id=17022</a><br class="">[2] <a href="https://code.google.com/p/chromium/codesearch#chromium/src/third_party/WebKit/Source/platform/image-decoders/webp/WEBPImageDecoder.cpp&amp;q=webpima&amp;sq=package:chromium&amp;l=1" class="">https://code.google.com/p/chromium/codesearch#chromium/src/third_party/WebKit/Source/platform/image-decoders/webp/WEBPImageDecoder.cpp&amp;q=webpima&amp;sq=package:chromium&amp;l=1</a><br class="">[3] <a href="http://cgit.collabora.com/git/user/kevino/Blink.git/commit/?h=jxr-support&amp;id=2ac58312a5aae502aacc1c55c0bfdff767ab82a2" class="">http://cgit.collabora.com/git/user/kevino/Blink.git/commit/?h=jxr-support&amp;id=2ac58312a5aae502aacc1c55c0bfdff767ab82a2</a><br class=""><br class="">BR.<br class=""><br class="">-- <br class="">ChangSeok<br class=""><br class="">_______________________________________________<br class="">webkit-dev mailing list<br class=""><a href="mailto:webkit-dev@lists.webkit.org" class="">webkit-dev@lists.webkit.org</a><br class="">https://lists.webkit.org/mailman/listinfo/webkit-dev<br class=""></blockquote></div></blockquote></div><br class=""></body></html>