简体   繁体   中英

JMagick: Program terminates unexpectedly and returns -1073740940

I am trying to do some image manipulations via JMagick interface to ImageMagick. The test program I tried compiles without a problem but during execution it gets stuck at the constructor of MagickImage and after some seconds of waiting the program terminates and returns -1073740940 .

public static void main(String[] args)
{
    try
    {
        ImageInfo imageInfo = new ImageInfo( "test.jpg" );

        MagickImage magickImage = new MagickImage( imageInfo ); //<-- Here the program gets stuck

                    //Do some image manipulation
    }
    catch (MagickException e)
    {
        // TODO Auto-generated catch block
        e.printStackTrace();
    }
}

Has anyone an idea how to solve this?

我解决了这个问题:PATH变量引用的ImageMagick可执行文件的版本必须与JMagick库的版本

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM