daffodil 0.1.3
D Imaging Library
To use this package, run the following command in your project's root directory:
Manual usage
Put the following dependency into your project's dependences section:
Daffodil
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() {
// daffodil allows you to choose what format pixels are stored with
// defaults to `real` for when you don't care about memory usage.
auto image = load!uint("daffodil.bmp");
// concise filter usage, with a simple saving API
image.gaussianBlurred(1.4)
.save("blurry_daffodil.bmp");
// easy transformations
image.flip!"y";
image.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
- Registered by Benjamin Schaaf
- 0.1.3 released 7 years ago
- BenjaminSchaaf/daffodil
- GPL-2.0
- Copyright © 2015, Cameron Lonsdale, Benjamin Schaaf
- Authors:
- Dependencies:
- none
- Versions:
-
0.1.3 2017-Jan-29 0.1.2 2016-Jun-30 0.1.1 2016-Apr-30 0.1.0 2016-Apr-14 ~master 2017-Jan-29 - Download Stats:
-
-
0 downloads today
-
0 downloads this week
-
0 downloads this month
-
141 downloads total
-
- Score:
- 0.5
- Short URL:
- daffodil.dub.pm