Hi Malat,

It's not possible to add support for <img src="foo.jp2"> in an extension.
Unfortunately, image decoders (src/image/decoders) need to be compiled into
the browser.

You could perhaps write an extension that watches web pages and inserts a
<canvas> child for all <img src="foo.jp2"> elements where you render your
image. It could break web pages though. XBL might also be an option
(allowing the content to be anonymous), but that's pretty tricky business.
:\

bholley

On Fri, Jul 27, 2012 at 9:35 AM, malat <mathieu.malate...@gmail.com> wrote:

> Hi there,
>
>   I have been trying to find in the documentation the simplest way to add
> JPEG 2000 support in my browser.
>   I found the following project: jpeg2000-plugin. However this is
> displaying in its own window. As far as I know there is not way to reuse
> this plugin and return the buffer in the <img/> element.
>   I have then started looking at js-ctypes/jslibs but all I could find
> were examples to display message box.
>   I know how to write a JPEG 2000 to BMP conversion routine, I just do not
> understand how I can pass back this buffer to firefox...
>
> Any info appreciated !
>
> [1] http://code.google.com/p/jpeg2000-plugin/
>
> -M
> _______________________________________________
> dev-platform mailing list
> dev-platform@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-platform
>
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to