I use ImageMagick++ (6.7.8.9) with node, it works without line 3.1. Image image;
2. image.read(srcBlob);
3. image.magick("PNG");
4. image.write(&blob);
If add line 3 to convert JPG to PNG, it will crash.
node: symbol lookup error: /root/gif-magick/build/Debug/im.node: undefined symbol: _ZN6Magick5Image5writeEPNS_4BlobERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE
PS: the codes works fine on mac os 10.15, but crash on centos.