Imagemagick- library magick++ library needed: sudo apt-get install -y libmagick++-dev libmagickcore-dev refer:https://imagemagick.org/Magick++/tutorial/Magick++_tutorial.pdf