This project has moved and is read-only. For the latest updates, please go here.

Making thumbnail creates black image on some machine

May 21, 2014 at 6:39 AM
Edited May 21, 2014 at 6:41 AM
I am trying to make thumbnails using the following code.
            MagickImage image = new MagickImage(path);

            image.Format = MagickFormat.Jpg;
            image.Thumbnail(maxwidth, maxheight);
            image.Interlace = Interlace.Line;
            image.Quality = 80;
It works fine on my dev machine, but on my testers machines it creates a black image.


It would great if someone can suggest what i am doing wrong.
May 21, 2014 at 8:38 AM
Edited May 21, 2014 at 8:38 AM
Can you try if disabling OpenCL resolves your issue? You can use the MagickNET.UseOpenCL property for this.
May 21, 2014 at 9:30 AM
That helped. Thumbnail is now generated properly.
Thanks a lot.

Let me know if you need anything else from me.
May 21, 2014 at 10:04 AM
Edited May 21, 2014 at 10:42 AM
Can you send me the content of the following directory on your testers machine: %USERPROFILE%\AppData\Local\.config\ImageMagick. And the output from the command clinfo? Contact me trough CodePlex on my profile page to get my e-mail address.

It would also be really helpful if you could send me a detailed debug log. You can find some information on how to do that here: