booxtream-epub-drm-remover
booxtream-epub-drm-remover copied to clipboard
'missing delegate' even though imagemagick is compiled with delegate
I am getting the following error message trying to remove watermarks from jpeg files in an epub:
wand.exceptions.MissingDelegateError: no decode delegate for this image format `JPEG' @ error/constitute.c/ReadImage/504
So at first I treated this error literally, and suspected a configuration error in my imagemagic install. However, after checking that libjpeg is installed, and recompiling the latest imagemagick from source, and checking the delegates:
DELEGATES bzlib freetype jng jpeg lzma png xml zlib
And typing 'convert test.jpg test.bmp' on the command line works without error.
I am now sure that jpeg support is present. For good measure, I also removed and reinstalled wand from source, but no luck.
At this point I think the error is masking some syntax or other kind of error, and because I have no idea how this script even works, I don't know how to fix the problem.
Full output:
File "cure.py", line 338, in <module>
main(sys.argv[1:])
File "cure.py", line 332, in main
wm6()
File "cure.py", line 175, in wm6
with Image(filename=path) as img:
File "build/bdist.linux-x86_64/egg/wand/image.py", line 4682, in __init__
File "build/bdist.linux-x86_64/egg/wand/image.py", line 4975, in read
File "build/bdist.linux-x86_64/egg/wand/resource.py", line 223, in raise_exception
wand.exceptions.MissingDelegateError: no decode delegate for this image format `JPEG' @ error/constitute.c/ReadImage/504```