{"id":29019474,"url":"https://github.com/xct007/meme-gen","last_synced_at":"2025-07-12T19:36:06.264Z","repository":{"id":191553360,"uuid":"684802762","full_name":"xct007/meme-gen","owner":"xct007","description":"Create meme using graphics magick ","archived":false,"fork":false,"pushed_at":"2023-09-07T22:04:44.000Z","size":122,"stargazers_count":4,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-04-23T14:03:07.599Z","etag":null,"topics":["graphicsmagick","javascript","meme-generator","meme-maker"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xct007.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}},"created_at":"2023-08-29T22:17:26.000Z","updated_at":"2023-09-01T09:25:26.000Z","dependencies_parsed_at":"2023-08-30T11:56:13.252Z","dependency_job_id":null,"html_url":"https://github.com/xct007/meme-gen","commit_stats":null,"previous_names":["xct007/meme-gen"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/xct007/meme-gen","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xct007%2Fmeme-gen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xct007%2Fmeme-gen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xct007%2Fmeme-gen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xct007%2Fmeme-gen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xct007","download_url":"https://codeload.github.com/xct007/meme-gen/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xct007%2Fmeme-gen/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261976595,"owners_count":23239159,"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":["graphicsmagick","javascript","meme-generator","meme-maker"],"created_at":"2025-06-26T00:30:33.700Z","updated_at":"2025-06-26T00:30:40.886Z","avatar_url":"https://github.com/xct007.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MEME Gen Maker\nCreate meme top/bottom text.\n\n![Example of meme created with Meme Maker](http://i.imgur.com/2s8NYvM.png)\n\nYou need install [graphicsmagick](http://www.graphicsmagick.org/index.html) in your system before using this package.\n\n## Installation\n- use `npm`\n```bash\nnpm install github:xct007/meme-gen\n```\n- use `yarn`\n```bash\nyarn add github:xct007/meme-gen\n```\n- npm package `soon`\n\n## Usage\n- *Basic*\n    ```js\n    import { memeG } from \"meme-gen\";\n    const meme = new memeG();\n\n    // use image\n    const input_image = \"./danil.jpg\";\n    meme.image(input_image);\n\n    // top text\n    meme.top(\"Anjay\");\n\n    // bottom text\n    meme.bottom(\"mabar\");\n\n    // make text upper case\n    meme.upper_case();\n\n    // create meme and save to disk\n    const output = \"./result.png\";\n    meme.writeAsync(output);\n\n    // or get a image buffer\n    meme.bufferAsync()\n    ```\n- *image options*\n    ```js\n    import { memeG } from \"meme-gen\";\n    import { readFileSync } from \"fs\";\n\n    const meme = new memeG();\n\n    // local path\n    meme.image(\"./danil_strok.jpg\");\n\n    // using url \n    meme.image(\"https://example.com/image.jpg\");\n\n    // buffer\n    const image_buffer = readFileSync(\"./danil.jpg\")\n    meme.image(image_buffer)\n\n    // by default it will use white blank image\n    meme.image()\n    ```\n- *text options*\n    ```js\n    import { memeG } from \"meme-gen\";\n\n    const meme = new memeG();\n\n    // fill text color\n    meme.fill(\"#FFF\") // white #FFF\n\n    // stroke/outline\n    meme.stroke(\"#000\") // black #000\n    meme.stroke(\"#000\", 2) // stroke width 2\n\n    // make text upper case\n    meme.uppe_case()\n\n    // text padding width\n    meme.padding_width(40) // default 40\n    ```\n- *load custom font*\n    ```js\n    import { memeG } from \"meme-gen\";\n\n    const meme = new memeG();\n\n    const font_path = \"./myfont.ttf\";\n\n    meme.load_font(font_path)\n    ```\n- *advance*\n    ```js\n    import { memeG } from \"meme-gen\";\n    \n    const image_buffer = await meme\n        .image(\"https://itsrose.life/rose.jpeg\")\n        .load_font(\"./my_font.ttf\")\n        .fill(\"#FFF\")\n        .stroke(\"#000\", 2)\n        .padding_width(40)\n        .top(\"OMG\")\n        .bottom(\"I love you\")\n        .upper_case()\n        .getBufferAsync()\n    \n    console.log(image_buffer);\n    ```\n## options\n- top: top text input\n- bottom: bottom text input\n- stroke: stroke color and width ``` hex_color: string, stroke_width: number```\n- upper_case: text to upper case\n- padding_width: text top/bottom padding\n- load_font: use custom font\n\n## Note\nThis repository project is a learning exercise, and as such it utilizes references from other open source repositories. No commercial use is intended, and all efforts have been made to ensure proper attribution has been given to any referenced libraries and code.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxct007%2Fmeme-gen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxct007%2Fmeme-gen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxct007%2Fmeme-gen/lists"}