{"id":15735165,"url":"https://github.com/basemax/cardcgenerator","last_synced_at":"2026-01-02T13:48:30.883Z","repository":{"id":256825103,"uuid":"856528584","full_name":"BaseMax/CardCGenerator","owner":"BaseMax","description":"Card Generator in C: A simple C program using Cairo to generate personalized certificates with custom backgrounds and fonts.","archived":false,"fork":false,"pushed_at":"2024-09-12T19:12:35.000Z","size":2966,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-10T15:11:46.450Z","etag":null,"topics":["c","c-image","card-game","card-game-engine","card-game-generator","card-game-simulation","card-games","card-image","cards","generate-image","image","image-c","image-generator"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BaseMax.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-12T18:18:42.000Z","updated_at":"2024-09-12T19:12:38.000Z","dependencies_parsed_at":"2024-09-13T08:53:08.316Z","dependency_job_id":null,"html_url":"https://github.com/BaseMax/CardCGenerator","commit_stats":null,"previous_names":["basemax/cardcgenerator"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2FCardCGenerator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2FCardCGenerator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2FCardCGenerator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2FCardCGenerator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BaseMax","download_url":"https://codeload.github.com/BaseMax/CardCGenerator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243357669,"owners_count":20277988,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["c","c-image","card-game","card-game-engine","card-game-generator","card-game-simulation","card-games","card-image","cards","generate-image","image","image-c","image-generator"],"created_at":"2024-10-04T01:10:27.425Z","updated_at":"2026-01-02T13:48:30.852Z","avatar_url":"https://github.com/BaseMax.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Card Generator in C\n\nThis is a C-based card generator that reads names from a text file and generates a card (image) for each name using the Cairo library for rendering.\n\n## Features\n\n- Generate personalized cards with names from a text file.\n- Customize the card background and font.\n- Outputs cards as PNG files in the `output` directory.\n\n## Getting Started\n\n### 1. Install Dependencies\n\nThe project uses the Cairo graphics library. You need to install Cairo and FreeType.\n\n#### On Linux (Debian/Ubuntu):\n\n```bash\nsudo apt-get update\nsudo apt-get install libcairo2-dev libfreetype6-dev\n```\n\nOn macOS (using Homebrew):\n\n```bash\nbrew install cairo freetype\n```\n\n### 2. Clone the Repository\n\n```bash\ngit clone https://github.com/BaseMax/CardCGenerator.git\ncd CardCGenerator\n```\n\n### 3. Compile the Program\n\nTo compile the program, use the following gcc command:\n\n```bash\ngcc card_generator.c -o card_generator $(pkg-config --cflags --libs cairo)\n```\n\n### 4. Directory Structure\n\nEnsure the following files are present in the project directory:\n\n- `card_generator.c` (the main C program)\n- `card-background.png` (the background image for the card)\n- `names.txt` (a list of names to be included on the cards, one name per line)\n- `arial.ttf` (or any other TrueType font file)\n\n#### Example Structure\n\n```\n/CardCGenerator\n|-- card_generator.c\n|-- card-background.png\n|-- names.txt\n|-- arial.ttf\n|-- output/  (this directory will be created automatically to store generated cards)\n```\n\n### 5. Run the Program\n\nRun the program to generate the cards:\n\n```bash\n./card_generator\n```\n\nThe generated cards will be saved in the output directory.\n\n## Customization\n\n- **Background Image:** You can replace card-background.png with your own background image.\n- **Font:** Replace arial.ttf with another font if needed.\n- **Names:** Edit names.txt to include the names you want to generate cards for.\n\n## Linking\n\nTo check the linking flags for Cairo:\n\n```bash\n$ pkg-config --cflags --libs cairo\n-I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -lcairo\n```\n\n## License\n\nInspired by https://alixsep.github.io/yugilife/#/build\n\nThis project is licensed under the GPL-3.0 License.\n\n### Author\n\nMax Base - 2024\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbasemax%2Fcardcgenerator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbasemax%2Fcardcgenerator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbasemax%2Fcardcgenerator/lists"}