I’m working on a project where I have to produce an image from a bigarray of pixels. Then, this image is used in a
src html field as data. See the following example:
<img src="data:image/<type>;base64,<data_content> />
type must be compatible with MIME type.
I tried to find a library that allows me to produce such data but I can’t find one to do what I want. The only one that suits is imagelib but there isn’t a release with the function I need. I use js_of_ocaml so I can’t use bindings…
Does someone have already encounter the problem and may have another solution ?