D bindings to the GraphicsMagick library.
Rev. | Zeit | Autor | Nachricht RSS |
c467022d | 2023-07-23 13:18:43 | Mio | [magickd] Add PixelWand color setters |
154f3742 | 2023-07-23 13:07:43 | Mio | [magickd] Update Exception classes Future proofing by se... |
0046439a | 2023-07-23 10:14:57 | Mio | [magickd] Add PixelWand.quantumColor |
c3325b8d | 2023-07-23 09:06:08 | Mio | [magickd] Add PixelWand.getColorCount |
bd1a27ba | 2023-07-23 08:38:37 | Mio | [magickd] Add PixelWand.setColor |
125667a2 | 2023-07-23 08:30:43 | Mio | [magickd] Add PixelWand getters for quantum colors |
57f95dfb | 2023-07-23 08:23:28 | Mio | [unittest] Update initialization |
4f4c9ffb | 2023-07-23 08:23:11 | Mio | [magickd] PixelWand add getter for all colors |
dd498591 | 2023-07-22 15:10:38 | Mio | [examples] Add extract_gif example |
f5f1ebd6 | 2023-07-22 15:03:24 | Mio | [examples] Update make_gif to produce example GIF |
The magickd
package provides a safe higher-level wrapper for the
GraphicsMagick
library. For more information about GraphicsMagick
, see the
official website.
In order to use the magickd
package, you must have libGraphicsMagick
library
installed where it can be found by pkg-config
.
You will also need a D compiler that supports D 2.076.0.
There are multiple ways you can configure the magickd
package, but first, add
it as a dub dependency:
For dub.sdl
:
dependency "magickd" repository="git+https://codeberg.org/supercell/magickd" \
version="6672d8200e2f1ead1dc4c9169d89a37a827433ac"
For dub.json
:
"dependencies": {
"magickd": {
"repository": "git+https://codeberg.org/supercell/magickd",
"version": "6672d8200e2f1ead1dc4c9169d89a37a827433ac"
}
}
With that done, you're good to go!
NOTE: ~~At some point I'll try get this package on http://dub.pm, for now though, just use the latest git hash.~~ This package won't be on The D package registry so long as they only support GitHub/GitLab/Bitbucket. In the mean time, use the latest git hash.
By default, magickd
will build the "dynamic" version, which will load the
GraphicsMagick libraries at runtime and bind the C symbol names to D symbols.
This process happens automatically when you import the magickd
package.
(NOTE: If you're not using dub, then you'll need to specify the
GMagick_Dynamic
version.)
Alternatively, you can build magickd
to use a "static" binding, which requires
linking against the GraphicsMagick library when compiling. (NOTE: If you're
not using dub, then you'll need to specify the GMagick_Static
version.)
A quick heads up if you've installed GraphicsMagick via MacPorts, you will
need to make sure that the LD_LIBRARY_PATH
environment variable will include
the directory which holds GraphicsMagick.dylib
and GraphicsMagickWand.dylib
.
By default, the directory is /opt/local/lib
. For example:
$ cd examples/
$ ./dmd.sh --shared
$ LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/opt/local/lib" \
./dmd/ping_dmd /path/to/my/picture.png
magickd
is licensed under the Expat license, you should have received a copy
in a file named LICENSE
.
If not, see https://codeberg.org/supercell/magickd/src/branch/master/LICENSE.
Welcome to OSDN Wiki system. Here is your chamber Wiki space.
Check Wiki Guide (English) to refer syntax and functions.
[PageInfo]
(auto generated page)
[Permissions]
view:all, edit:admins, delete/config:admins