Pystacia to work requires ImageMagick shared libraries. Specifically MagickWand DLL. Pystacia by default does install prebuilt binaries. Sometimes you may want to compile ImageMagick yourself and not use packaged one. You can set environment variable PYSTACIA_SKIP_BINARIES to non-false value while performing installation to skip copying of DLLs.
....$ PYSTACIA_SKIP_BINARIES=1 pip install pystacia
When performing :term:’MagickWand’ search theses directories are inspected in following order:
When loading a library SONAMEs in file names are preferred in this order: 5, 4, 3 and no SONAME.
Any factory function inside Pystcia can accept optional factory parameter specifying class or function to be used when instantiating objects.
>>> from pystacia import Image
>>> class MyImage(Image):
>>> def cool_effect(self):
>>> self.swirl(45)
>>> from pystacia import wizard
>>> img = wizard(factory=MyImage)
>>> img
<MyImage(w=480,h=640,8bit,rgb,palette) object at 0x103297200L>
>>> img.cool_effect()