• R/O
  • HTTP
  • SSH

Résumé du dépôt

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

D bindings to the GraphicsMagick library.

Commits Récents RSS

Révision l'heure Auteur Message:
c467022 2023-07-23 13:18:43 Mio master [magickd] Add PixelWand color setters
154f374 2023-07-23 13:07:43 Mio [magickd] Update Exception classes Future proofing by se...
0046439 2023-07-23 10:14:57 Mio [magickd] Add PixelWand.quantumColor
c3325b8 2023-07-23 09:06:08 Mio [magickd] Add PixelWand.getColorCount
bd1a27b 2023-07-23 08:38:37 Mio [magickd] Add PixelWand.setColor
125667a 2023-07-23 08:30:43 Mio [magickd] Add PixelWand getters for quantum colors
57f95df 2023-07-23 08:23:28 Mio [unittest] Update initialization
4f4c9ff 2023-07-23 08:23:11 Mio [magickd] PixelWand add getter for all colors
dd49859 2023-07-22 15:10:38 Mio [examples] Add extract_gif example
f5f1ebd 2023-07-22 15:03:24 Mio [examples] Update make_gif to produce example GIF


Nom Révision l'heure Auteur Message:
master c467022 2023-07-23 13:18:43 Mio [magickd] Add PixelWand col...



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" \

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.

Dynamic or Static Bindings

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.)

macOS - MacPorts - Dynamic Bindings

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.