-
Notifications
You must be signed in to change notification settings - Fork 199
New issue
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? Sign in to your account
Occasional image corruption with pseudo (and draw?) #617
Comments
That looks like a buffer that's not cleared -- not a Wand issue. Are you using X11 or Wayland (or XWayland)? First thought would be to replace |
Thanks Eric. I’m testing the code in pydev (Eclispe) on an M1 MacBook Pro. Saving the images result in the same inconsistent behavior. |
Sorry, can't offer much help with that environment. Here's a few more experiments that might help determine the cause. Goals
Part 1: Create MVG Copy the following into a
Part 2: Execute in Python/Wand Replace the original code above with the following. from wand.image import Image
from wand.display import display
for _ in range(8):
with Image(width=640, height=360, background="white", pseudo="pattern:checkerboard") as img:
img.format = 'png'
with Image(width=640, height=360, background="transparent", filename="MVG:vector.mvg") as draw:
img.composite(draw)
display(img) Part 3: Repeat in CLI Open a terminal, and for i in $(seq 8)
do
magick -size 640x360 -background white pattern:checkerboard \
-background transparent MVG:vector.mvg -composite png:- | display png:-
done Although, I think osx uses zsh now-a-days. You might need to replace Hopefully this will help identify the cause. |
I'm sometimes getting "glitchy" imagery when my background uses "checkerboard" and I draw shapes. It happens about 40% of the time.
Code sample to (sometimes) reproduce the issue:
Out of the 8 rendered images, 3 exhibited glitches. Is this a bug or is there a proper method to avoid it?
The text was updated successfully, but these errors were encountered: