ImageMagick

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?".

I have a problem where some of the images when converting using IM it turns as negative. Below are the commands that i use in my Java code to convert images. (both original image and as well as effected images are attached). But this is not happening with all the images hardly 1 or 2 for every 100 images. I could think that image could be incompatible for the conversion.
Please help me in this am very new to IM. (have tried this with IM7, IM6.9.9 and IM6.9.1 )