- ImageMagick for PHP has to be installed in the server.
- A valid hosted Mozilla OpenBadges assertion JSON URL.
Here you can find a fast and simple way to create a standard-compatible OpenBadge .png baked imagefile using PHP.
You can find a class to use it and see how it works, and a little implementation into a Drupal 7 function.