The following small example script from the old PythonMagick tutorial
worked for me just as coded below using Python 2.2.1 and an earlier release
of PythonMagick, which has been uninstalled, but now throws
TypeError: bad argument type when calling the writeImages( .... ) function ....
Traceback (most recent call last):
File "animate1.py", line 14, in ?
writeImages( imgs , './out/a1_kirstin.gif' , 1 )
TypeError: bad argument type for built-in operation
Magick: Failed to close module ("UnregisterJPEGImage: The operation completed successfully.").
Write images in container to file specified by string imageSpec_.
Set adjoin_ to false to write a set of image frames via a wildcard imageSpec_
The wildcard must be one of %0Nd, %0No, or %0Nx.
Caution: if an image format is selected which is capable of supporting fewer colors
than the original image or quantization has been requested, the original image will be
quantized to fewer colors. Use a copy of the original if this is a problem.
All of the other PythonMagick examples from the original tutorial
seem to work OK except the two that compose animated GIFs
using the writeImage function ....
Any clues ????
"Cousin Stanley" <(E-Mail Removed)> wrote in message
> TypeError: bad argument type for built-in operation
> Magick: Failed to close module ("UnregisterJPEGImage: The operation
the last line seems to be the real error. PythonMagick is only a wrapper
around GraphicsMagick. To me it looks like this is not a problem of the
wrapper, but of GraphicsMagick. You might subscribe to the GraphicsMagick
APIs Mailinglist and ask Bob about this error.
This problem doesn't seem to be unique to JPG files
and also shows up with the wxPython/PythonMagick example
in the current tutorial posted at ....
Magick: Failed to close module ("UnregisterPNGImage: The operation completed suc
Magick: Failed to close module ("UnregisterRGBImage: The operation completed suc
As with most of the simple examples from the original PythonMagick tutorial,
with the exception of the writeImages function noted in my original post
and a different problem with example4.py , this wxp_pm.py program seems to do
the desired image processing as expected in spite of the Failed to close module
The versions of the original PythonMagick tutorial that I use
along with their output images can be found at ....