Frequently used words (click to add to your profile)

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

最近の作業部屋活動履歴

2023-07-23
2023-07-22
2023-07-18
2023-07-17
2023-07-16
2023-07-15
2023-07-04

最近のWikiの更新 (Recent Changes)

No changes on this wiki.

Wikiガイド(Guide)

サイドバー (Side Bar)

MagickD

  • R/O
  • R/O (HTTP)
  • R/W (SSH)
  • R/W (HTTPS)
Fork

D bindings to the GraphicsMagick library.

Release Files

No download files.

Recent Commits

Rev.TimeAuthorMessage RSS
c467022d2023-07-23 13:18:43Mio[magickd] Add PixelWand color setters
154f37422023-07-23 13:07:43Mio[magickd] Update Exception classes Future proofing by se...
0046439a2023-07-23 10:14:57Mio[magickd] Add PixelWand.quantumColor
c3325b8d2023-07-23 09:06:08Mio[magickd] Add PixelWand.getColorCount
bd1a27ba2023-07-23 08:38:37Mio[magickd] Add PixelWand.setColor
125667a22023-07-23 08:30:43Mio[magickd] Add PixelWand getters for quantum colors
57f95dfb2023-07-23 08:23:28Mio[unittest] Update initialization
4f4c9ffb2023-07-23 08:23:11Mio[magickd] PixelWand add getter for all colors
dd4985912023-07-22 15:10:38Mio[examples] Add extract_gif example
f5f1ebd62023-07-22 15:03:24Mio[examples] Update make_gif to produce example GIF

MagickD

The magickd package provides a safe higher-level wrapper for the GraphicsMagick library. For more information about GraphicsMagick, see the official website.

Dependencies

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.

Configuration

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.

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

License

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.

Latest updated Tickets

No tickets

About Chamber Wiki

Welcome to OSDN Wiki system. Here is your chamber Wiki space.

Check Wiki Guide (English) to refer syntax and functions.