RAW processing plug-in - any interest? (PhotoFlow Editor)

Boudewijn Rempt boud at valdyas.org
Mon Mar 13 10:12:18 UTC 2017


On Mon, 6 Mar 2017, PhotoFlow Editor wrote:

> Anyhow, what I mostly need at this initial stage is some guidance from Krita experts to start writing a plug-in that I can then debug and improve. Hopefully this will not be too difficult.

Back from vacation...

Krita doesn't install any headers, so you'll have to develop your
plugin in-line. The simples file import/export plugin to check out is
the bmp one: krita/plugins/impex/bmp. I'd disable the existing raw
plugin for now; when your plugin works, we can ship both and add a
setting to the settings dialog to enable or disable the photoflow 
plugin (or maybe do something smart like checking whether photoflow
can be found).

A file import plugin has the following parts:

* a .desktop file to associate krita with the given filetype in the
system -- only used on freedesktop compliant systems. 
* two json files, one for import and one for export. This is used
internally in Krita to figure out which plugin to use for a certain
mimetype.
* the actual implementation:

This needs to implement KisImportExportFilter::convert. This is
passed a document, an iodevice and a configuration object. You
can also get a number of things from the KisImportExportFilter
base class, like the filename you're loading from.


-- 
Boudewijn Rempt | http://www.krita.org, http://www.valdyas.org


More information about the kimageshop mailing list