dahlia/wand — pull request #75 by niwibe (2012-11-17 00:54:11+00:00)
Title: Add resolution parameter to constructor and read method.

This is a substitute pull request for (https://github.com/dahlia/wand/pull/67)

At the other pull-request indicabas that should put the method in the constructor rather read.

To read well the vector formats you need to put the resolution before reading the file. So it's very useful to have the ``resolution`` parameter in the constructor. So it's easy to keep using python context managers.

Also, I added the possibility that resolution is an integer and not a tuple. This emulates the behavior of the parameter "-density" from the command line, and may bring ``resolution=300``, which actually becomes (300, 300).

I added appropriate tests.