The MagickWand interface is a new high-level C API interface to ImageMagick core methods. We discourage the use of the core methods and encourage the use of this API instead. Post MagickWand questions, bug reports, and suggestions to this forum.
I'm writing a shell extension where I get a file stream and need to create a thumbnail. I thought Blobs would be perfect for this but it seems that not all image formats are detected? For example, if I pass a PNG it works, but if I pass a TGA it doesn't.
Have I misunderstood something? How can I make it work for all supported file types? I've tried the other ctor that takes a Blob, although I do know the file extension/type I do not know the geometry/size of the image.
Some formats do not have magic numbers to help identify the image format. For those, set the image filename and ImageMagick will use it as hint for the image format. For example, a filename of image.tga tells ImageMagick the blob is in the TARGA format. Or you can set the image magick as TGA:.
Post a short program we can download and compile to reproduce the problem and include an example Targa image. We need to reproduce the problem before we can offer any additional advice.
I found my error while writing a small sample. I was giving ".tga" instead of "tga". "filename.tga" didn't work either. "tga" is working perfectly! Thank you very much for the help.