Event Badge Generation Script

in #utopian-io7 years ago (edited)

Event badges

This script helps to generate unique badges for visitors of your event fast & convinient (200 badges took a minute)

Badge

Description

This script adds name(s) of participants to your badges. It requires imagemagick to be installed.

HOW-TO

  1. Install git if you don't already and clone this repo; then enter the directory.
sudo apt install git # ubuntu
git clone https://github.com/sxiii/eventbadges
cd eventbadges
  1. Prepare the TEXT file with name "good.csv" which consist of the following:
DenFFFFFIvanovFFFFF@fakesnowden
JohnFFFFFConnorFFFFF@johnconnor

Use name, then 5 letter F as separator, then surname and 5 "F"s, then telegram username or other info.

NameFFFFFSurnameFFFFF@telegramusername
For each text row in file, separate badge will be created.

  1. Prepare the image without name on it.

  2. Edit this config (below) to fit your image. You will have to do multiple try-outs to understand if you match the size and place well.

Samples of badges are included in this repo.

  1. Run ./makebadges.sh each time and view the results!

  2. Make an issue on github if you have any problems, comments, or commit if you like to improve it. Thanks.

Description of variables

  • x - X location of the name (horizontal), in pixel
  • y - Y location of the name (vertical), in pixel
  • sourcefile - the source layout (model) of badge (without names on it) filename
  • gravity - this makes everything centered
  • stroke - black stroke
  • filename - the source file with names

Badge sample

Photo

Improving the project (plans)

  • Make the source include badge category (jury, participant, speaker, organiser, administration etc) and edit script to support this metadata
  • Make the script go inside the dirs and build badges according to categories
  • Do some GUI preview of badges
  • GUI badges constructor (add your logo, text placement etc.)

Main project files

FilenameDescription
README.mdThis file
b.pngSource/current badge layout. Will be used by generator
good.csvSource/current badge texts. Will be used by generator
makebadges.shThe script of badge generator itself

Example badge files

FilenameDescription
jury.pngExample jury badge (source png)
participant.pngExample participant badge (source png)
speaker.pngExample speaker badge (source png)
sponsor.pngExample sponsor badge (source png)
staff.pngExample stuff badge (source png)
volunteer.pngExample volunteer badge (source png)
sources-badges-xcf.tar.gzBadge source files in XCF (GIMP) format
result_Den\nIvanov\[email protected]Ready file example

The source code

https://github.com/sxiii/eventbadges



Posted on Utopian.io - Rewarding Open Source Contributors

Sort:  

@sxiii, Contribution to open source project, I like you and upvote.

Your contribution cannot be approved because it is too small contribution code wise. It might be helpful for people but in Utopian considering other contribution we feel it cannot be accepted.

You can contact us on Discord.
[utopian-moderator]

Coin Marketplace

STEEM 0.16
TRX 0.13
JST 0.027
BTC 60701.29
ETH 2637.06
USDT 1.00
SBD 2.52