StyleShare/wand — Issue #3: Make the example code to work
Author: dahlia
Created: 2011-10-28 02:50:37+00:00
State: open

Currently the following example code which is listed on the documentation index (and also is a home of the official website) does not work:

from wand.image import Image

with Image(filename='mona-lisa.png') as img:
print img.size
for r in 1, 2, 3:
with img.clone() as i:
i.rotate_right()
if r % 2:
i.sepia_tone()
i.save('mona-lisa-{0}.png'.format(i))

Because there are two methods not implemented yet. Implement the following methods:

- `wand.image.Image.rotate_right()`: See the issue #2 also.
- `wand.image.Image.sepia_tone()` : A direct mapping to [`MagickSepiaTone`][1].

[1]: http://www.imagemagick.org/api/magick-image.php#MagickSepiaToneImage