Skip to content
This repository was archived by the owner on Oct 4, 2020. It is now read-only.
This repository was archived by the owner on Oct 4, 2020. It is now read-only.

FYI: libraw-cffi #156

Description

@Julian

Hi! Props, rawkit seems nice.

This isn't really a bug (so apologies for putting it on your issue tracker), but I had a need for CFFI based bindings for libraw, so I put together libraw-cffi.

If you haven't used/seen CFFI before, it's really miles easier/less effort to use than ctypes (see e.g. how libraw-cffi basically just copy pastes libraw/libraw.h and then dynamically binds all the struct-using functions).

I haven't fully tried it, but I suspect that if you'd like to, rawkit's libraw could be replaced by it (and likely be faster/easier to maintain for both CPython and PyPy).

Here's e.g. a port of the save_jpeg_to_pil example from rawkit.

Wanted to post this to get your thoughts, so if nothing else you were aware :)

And thanks again for making rawkit!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions