We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
i am trying to set the background color to white when loading an svg, however Image() ignores it
The text was updated successfully, but these errors were encountered:
Vector graphics are a little different as the size & background color may need to be defined before reading the file.
from wand.image import Image from wand.color import Color from wand.api import library with Image() as img: library.MagickSetSize(img.wand, 500, 500) with Color('WHITE') as bg: library.MagickSetBackgroundColor(img.wand, bg.resource) img.read(filename='the_image_file.svg')
Which should be the same as...
convert -size 500x500 -background WHITE the_image_file.svg ...
I think there's a few FIXME, or TODO notes in wand.image.Image.__init__() method to improve handling of this.
FIXME
TODO
wand.image.Image.__init__()
Sorry, something went wrong.
No branches or pull requests
i am trying to set the background color to white when loading an svg, however Image() ignores it
The text was updated successfully, but these errors were encountered: