I am not sure. But ImageMagick is depend on graphviz via option.. ImageMagick has an option webp. Graphviz in depend via LIB_CEPENDS on gd. And gd has the webp option. Maybe it is this.