Failed to compare images with Imagemagick with robot framework on Windows environment

后端 未结 2 947
说谎
说谎 2021-01-26 15:05

I am using Imagemagick to compare two screenshots in windows environment.

https://blog.codecentric.de/en/2017/09/robot-framework-compare-images-screenshots/

2条回答
  •  走了就别回头了
    2021-01-26 16:00

    If you want to use the "legacy" convert command with ImageMagick v7, you need to click the option during installation of ImageMagick that says "Install legacy tools".

    Or, use the new command which is:

    magick input.png ... output.png
    

    rather than:

    convert input.png ... output.png
    

    So, if you know how to change your configuration variable IMAGE_COMPARATOR_COMMAND to C:\\"Program File"\\ImageMagick-7.0.7-Q16\\magick, you can do it without re-installing ImageMagick.

提交回复
热议问题