What's new in Wand 0.6? ======================= This guide doesn't cover all changes in 0.6. See the full list of changes in :ref:`changelog-0.6`. Completed MagickWand API '''''''''''''''''''''''' The majority of the MagickWand API has been integrated into Wand between 0.5 & 0.6 release. Documentation referring to incomplete, or minimal integrations of the API have been updated. Ensure to run Wand with the latest ImageMagick-7 library to take advantage of all the new methods. - :meth:`Image.auto_threshold() ` method. - :meth:`Image.canny() ` method. - :meth:`Image.clahe() ` method. Also known as "Contrast Limited Adaptive Histogram Equalization". - :meth:`Image.complex() ` method. - :meth:`Image.connected_components() ` method. - :meth:`Image.hough_lines() ` method. - :meth:`Image.kuwahara() ` method. - :meth:`Image.level_colors() ` method. - :meth:`Image.levelize() ` method. - :meth:`Image.levelize_colors() ` method. - :meth:`Image.local_contrast() ` method. - :meth:`Image.mean_shift() ` method. - :meth:`Image.polynomial() ` method. - :meth:`Image.range_threshold() ` method. - :meth:`Image.read_mask() ` method. - :meth:`Image.rotational_blur() ` method. - :meth:`Image.wavelet_denoise() ` method. - :meth:`Image.write_mask() ` method. Numpy I/O Fixes ''''''''''''''' The original integration of Numpy's array interface exported shape data as ``( WIDTH, HEIGHT, CHANNELS )``. However many other imaging libraries that work with Numpy expect this shape data as ``( ROWS, COLUMNS, CHANNELS )``. Wand-0.6 adjusted the shape data to be in alignment & compatible with other libraries. Documentation & Test Cases Ship with Source Distribution '''''''''''''''''''''''''''''''''''''''''''''''''''''''' The source distribution now includes Wand's `reStructuredText`_ documentation, and `pytest`_ regression tests source files. Hopefully this will help offline users. See :ref:`running-tests` document for info on local testing. Use setuptools-extra to install additional development dependencies:: pip install -U Wand[doc,test] .. _reStructuredText: https://en.wikipedia.org/wiki/ReStructuredText .. _pytest: https://docs.pytest.org/en/latest/ Improved Memory Deallocation & :mod:`atexit` Support '''''''''''''''''''''''''''''''''''''''''''''''''''' Several memory leaks have been addressed by reworking the :mod:`wand.resource` allocation & deallocation functions. It's still recommended to use Wand's :class:`Image ` class in a ``with`` statement for proper memory-resource context:: with Image(filename='input.jpg') as img: pass Users not using the ``with`` statement forfeit memory deallocation over to Python's garbage-collector :mod:`gc` module. The :c:func:`MagickWandTerminus()` function is now only called during Python's :mod:`atexit` shutdown routine. .. note:: For "What's New in Wand 0.5", see `previous announcements`_. .. _previous announcements: 0.5.html