Open thenewguy opened 7 years ago
Sounds like ImageMagick wasn't compiled with the right delegates to read the file.
To check, try running convert -list configure
and search for the line that starts with DELEGATES
.
Mine is: DELEGATES bzlib mpeg fontconfig freetype gslib jng jpeg lcms lqr lzma openexr openjp2 pango png ps rsvg tiff webp wmf x xml zlib
This is the result:
# convert -list configure | grep -i 'delegates'
DELEGATES bzlib djvu fftw fontconfig freetype jbig jpeg jng jp2 lcms2 lqr lzma openexr pango png rsvg tiff x11 xml wmf zlib
Several differences... happen to know which one is offending? I didn't think it was a problem since wand can directly open the gif file but wasn't thinking that willow could be using a different conversion format
I think I figured it out. Looks like the issue is write buffering. The error message sent me in the wrong direction. I am not sure how to write a test for it... any ideas?
This works:
from willow.plugins.wand import WandImage
from willow.registry import registry
from willow.image import GIFImageFile
def flush_before_conversion(image_file):
image_file.f.flush()
return WandImage.open(image_file)
registry.register_converter(GIFImageFile, WandImage, flush_before_conversion, cost=1)
As you can see, I have an issue :+1: convert -list configure | grep -i 'delegates' DELEGATES mpeg ps
i need all common filetypes like jpeg png bmp all of them help please I need a quick and easy idiot proof way of doing this! a script would be nice to automate it? help me someone!
Download "Synaptic Package Manager" from ubuntu software center. remove older packages and reinstall broken packages from there. If your lib* package not available in your system, then install it from Synaptic package manager. Hope it helps :)
I am running into an issue I cannot figure out.
Here is the traceback:
Here is a copy of the tests:
Note that using wand directly has no issues with the file. Only when using the willow api to open the file with wand. See tests
test_wand_gif_path_directly
andtest_wand_gif_file_directly
. This error occurs with your 'newtons_cradle.gif' test file as well so it isn't specific to my file or I would upload it as well.Have you encountered this before and what other information can I provide to help narrow this down?
Here is a list of my installed packages:
Running in a Docker container based on Ubuntu 14.04 and pillow/wand deps are installed this way:
apt-get build-dep -y python-pil python-wand