@@ -13,6 +13,37 @@ language. All supporting Python 2 code in :mod:`wand.compat` has been
1313remove.
1414
1515
16+ Channel FX
17+ ''''''''''
18+ Wand now supports Channel FX operations to create, copying, and/or extract data
19+ from color channels. For example, extracting a `meta ` channel as a new image::
20+
21+ >>> from wand.image import Image
22+ >>>
23+ >>> with Image(filename='tagged_image.psd') as img:
24+ ... with img.channel_fx('meta') as meta:
25+ ... meta.save(filename='meta_channel.png')
26+
27+ Each channel can be accessed by named (e.g. `red `, `green `, `blue `, etc)
28+ or by index (e.g. `0 `, `1 `, `2 `, etc). The following operations are supported:
29+
30+ +---------+----------------------------------------------------------------+----------------------+
31+ | FX | Action | Example |
32+ +=========+================================================================+======================+
33+ | ``<=> `` | Exchange two channels. | ``red <=> green `` |
34+ +---------+----------------------------------------------------------------+----------------------+
35+ | ``=> `` | Copy one channel to another. | ``red => green `` |
36+ +---------+----------------------------------------------------------------+----------------------+
37+ | ``= `` | Assign a constant value to a channel. | ``red = 50% `` |
38+ +---------+----------------------------------------------------------------+----------------------+
39+ | ``, `` | Write a new image with channels in a specified order. | ``red, green, blue `` |
40+ +---------+----------------------------------------------------------------+----------------------+
41+ | ``; `` | Add a new output image for the next set of channel operations. | ``red; green `` |
42+ +---------+----------------------------------------------------------------+----------------------+
43+ | ``| `` | move to the next input image for the source of channel data. | ``| grey => alpha `` |
44+ +---------+----------------------------------------------------------------+----------------------+
45+
46+
1647Evaluate Images
1748'''''''''''''''
1849
@@ -43,6 +74,8 @@ In an effort to modernize the codebase, Wand will start migrating from
4374will still be available for Wand 0.7.x releases.
4475
4576
77+ .. note ::
78+
4679 For "What's New in Wand 0.6", see `previous announcements `_.
4780
4881 .. _previous announcements : 0.6.html
0 commit comments