Page 1 of 1

Posted: 2006-04-15T07:46:02-07:00
by magick
ImageMagick is thread-safe at the image level so you can read, process, and write multiple images as long as they are in separate threads. You cannot, for example, rotate a particular image in one thread and simultaneously quantize it in another thread.

Make sure threading is enabled when ImageMagick was built. Check the magick/magick-config.h header file and verity HAVE_PTHREAD is defined. If you continue to have problems, post a short MagickWand program here that we can run and reproduce the problem. We will investigate further.

Posted: 2006-04-15T20:46:38-07:00
by magick
Two problems. We had a threading issue with the GIF image format. This is fixed in ImageMagick 6.2.7 Beta available tommorrow. The other is a documentation error. Use MagickSetFormat() rather than MagickSetImageFormat() to specify the image format for MagickGetImageBlob(). Thanks for bring this problem to our attention.

Posted: 2006-04-17T19:55:22-07:00
by magick
Looks like we're missing a semaphore lock in the ImageMagick module methods. We will apply a patch to ImageMagick 6.2.7-1 Beta within a few days.

Posted: 2006-04-18T09:31:31-07:00
by magick
We have a patch in ImageMagick 6.2.7-1 to make module loading thread-safe. ImageMagick 6.2.7-1 will be available within the hour at ftp://magick.imagemagick.org/pub/ImageMagick/beta. Thanks for the problem report.

Posted: 2006-04-18T17:45:56-07:00
by magick
Your patch is probably necessary, however, we put a patch in https://subversion.imagemagick.org/subv ... k/module.c
to ensure module loading is thread-safe. If you encounter additional thread safety problems, let us know.