Description

D Imaging Library

Package Information

Version0.1.2 (2016-Jun-30)
Repositoryhttps://github.com/BenjaminSchaaf/daffodil
LicenseGPL-2.0
CopyrightCopyright © 2015, Cameron Lonsdale, Benjamin Schaaf
AuthorsCameron Lonsdale, Benjamin Schaaf
Registered byBenjamin Schaaf
Dependenciesnone

Installation

To use this package, put the following dependency into your project's dependencies section:

dub.json
dub.sdl

Readme

Daffodil

Build Status Coverage Status DUB Listing

A image processing library for D, inspired by Pillow.

Read the documentation here.

Goals

  • Simple, Extensible API
  • Controllable internals with suitable defaults
  • Wide format support with extensive testing
  • High performance
  • Support a variety of filters and transformations
  • Thread Safety (pending)

Example

import daffodil;
import daffodil.filter;
import daffodil.transform;

void main() {
    auto image = load!32("daffodil.bmp");

    image.gaussianBlurred(1.4).save("blurry_daffodil.bmp");

    image.flipped!"y".save("upside_down_daffodil.bmp");
}

Installing

Add daffodil as a dependency to your dub.json:

"dependencies": {
    "daffodil": "~>0.1.1"
}

Or fetch the package directly:

dub fetch daffodil

Development

Testing

Tests use the unit-threaded framework and can be run using:

dub test

Documentation

Documentation is written using the sphinx framework and a custom D domain/autodoc for sphinx (sphinxddoc).

To build the documentation, simply run:

make html

Available versions

0.1.2 0.1.1 0.1.0 ~master