Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.
Already on GitHub?
to your account
with Drawing() as draw:
draw.stroke_color = Color('black')
draw.stroke_width = 2
draw.line((50, 50), (40, 20))
with Image(width=150, height=100, background=Color('lightblue')) as image:
image_arr = np.array(image)
assert (image.height, image.width) == image_arr.shape[:2]
This small snippet fails as the width and height are different. If we set them to be the same there are no issues, and the image_arr looks like it should.
The text was updated successfully, but these errors were encountered:
Wand orders shape data as (WIDTH, HEIGHT, CHANNELS). Try
(WIDTH, HEIGHT, CHANNELS)
assert (image.width, image.height) == image_arr.shape[:2]
Sorry, something went wrong.
Fixed issue #447 - Numpy shape order
Shape attribute order should be updated with correct values. Attaching to 0.6 release milestone.
No branches or pull requests