A tool to place overlays over social media avatars.
The software in this repository lets end-users add an optical overlay to their social media pictures or photos. This makes sense to advertise events such as the AugustRiseUp in Berlin, for which I created this software.
This repo’s software runs at https://klimainitiativen.info/avatar_generator
This repository forms a Drupal module. To use it, you need a working instance of Drupal 8 or higher.
You can install the module using Composer by executing the following in your server's shell (e.g., Bash):
composer require fonata/avatar_overlay_generator
drush en avatar_overlay_generator
Now, the URLs defined in avatar_overlay_generator.routing.yml
will be served by your Drupal instance.
There are no configuration options.
The most important task is to add more overlays
- Create an
.svg
file and a.png
file with the same name. The .svg will be used as the overlay and the .png as a preview. - Place both files in proper
overlays
subdirectory of your server. - If you want to give the overlays back to the community, create a pull request at https://github.com/gogowitsch/avatar_overlay_generator/pulls
To serve multiple URLs with different sets of overlays, these steps are needed:
- Create a new class that extends
GenericAvatarForm.php
. - Create a route that links the new class with a new URL (see
avatar_overlay_generator.routing.yml
) - Create a directory with one or more png & svg file pairs and reference the directory in the new class.
If you want to report bugs, feature requests, or submit a patch, please do so at the project page on the GitHub website: https://github.com/gogowitsch/avatar_overlay_generator/issues
Christian Bläul:
The author can also be contacted for paid work on Drupal or other web applications.