Aborting MagickGetImagesBlob

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
albeebe
Posts: 1
Joined: 2013-06-28T13:11:13-07:00
Authentication code: 6789

Aborting MagickGetImagesBlob

Post by albeebe »

My question is, how can i safely abort the MagickGetImagesBlob request.

I'm using the iOS port to generate animated GIFs. I create a background thread and add all the frames then i call MagickGetImagesBlob to get the resulting GIF. It can take up to 10 seconds for MagickGetImagesBlob to return the GIF so I would like the ability to halt execution of MagickGetImagesBlob and safely move on.

I have i tried DestroyMagickWand while its in the process of executing MagickGetImagesBlob which immediately crashes the app with the message "Assertion failed: (image->signature == MagickSignature), function SyncImage, file magick/image.c, line 3412" SIGABRT. I was hoping i could catch that and move on, but i have not found a way to recover from that. Any ideas?
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Aborting MagickGetImagesBlob

Post by magick »

MagickGetImagesBlob() is not interruptible. If you kill the thread, it will likely create either a temporary file or memory leak.
Post Reply