[webkit-dev] Modern image formats for WebKit

ChangSeok Oh changseok.oh at collabora.com
Thu Mar 19 23:54:24 PDT 2015


> 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.

Yes. there are of course. libwebp, libjxr are available on linux based systems and also seem available on mac and Windows. [1]
Both are BSD license so that there is no license issue to port them for any platforms if necessary.
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.*)

[1] https://developers.google.com/speed/webp/download <https://developers.google.com/speed/webp/download>
     https://jxrlib.codeplex.com/releases/view/107208 <https://jxrlib.codeplex.com/releases/view/107208>
     https://packages.debian.org/wheezy/webp <https://packages.debian.org/wheezy/webp>
     https://packages.debian.org/sid/utils/libjxr-tools <https://packages.debian.org/sid/utils/libjxr-tools>


ChangSeok

> On Mar 20, 2015, at 2:21 PM, Myles C. Maxfield <mmaxfield at apple.com> wrote:
> 
> 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.
> 
> 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.
> 
>> On Mar 19, 2015, at 9:38 PM, ChangSeok Oh <changseok.oh at collabora.com> wrote:
>> 
>> Hi WebKittens.
>> 
>> I just saw apng support landed on webkit main stream. [1] (even it works for gtk port only now)
>> So I suddenly wonder if webkit community is getting interested in bringing other modern image formats like webp or jpeg-xr into webkit.
>> If so, I can lend my hands for it.
>> 
>> For webp support, as you know, we can reuse blink's codebase. [2]
>> 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. ;))
>> 
>> My intention is not to argue which format is better, just to ask community's thoughts, preferences  or like that.
>> 
>> [1] https://bugs.webkit.org/show_bug.cgi?id=17022
>> [2] https://code.google.com/p/chromium/codesearch#chromium/src/third_party/WebKit/Source/platform/image-decoders/webp/WEBPImageDecoder.cpp&q=webpima&sq=package:chromium&l=1
>> [3] http://cgit.collabora.com/git/user/kevino/Blink.git/commit/?h=jxr-support&id=2ac58312a5aae502aacc1c55c0bfdff767ab82a2
>> 
>> BR.
>> 
>> -- 
>> ChangSeok
>> 
>> _______________________________________________
>> webkit-dev mailing list
>> webkit-dev at lists.webkit.org
>> https://lists.webkit.org/mailman/listinfo/webkit-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-dev/attachments/20150320/7c0ad1d0/attachment.html>


More information about the webkit-dev mailing list