{"id":18647629,"url":"https://github.com/artcom/asset-generator","last_synced_at":"2025-11-05T07:30:28.205Z","repository":{"id":189569403,"uuid":"604515379","full_name":"artcom/asset-generator","owner":"artcom","description":"Generate assets based on a configuration file ","archived":false,"fork":false,"pushed_at":"2024-05-22T13:31:07.000Z","size":52,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":11,"default_branch":"main","last_synced_at":"2024-12-27T12:21:48.679Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/artcom.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":"2023-02-21T08:15:37.000Z","updated_at":"2024-05-22T13:31:12.000Z","dependencies_parsed_at":"2024-01-23T15:29:20.659Z","dependency_job_id":"cd6126d8-5bbc-412f-90b1-5483ae04e0b9","html_url":"https://github.com/artcom/asset-generator","commit_stats":null,"previous_names":["artcom/asset-generator"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artcom%2Fasset-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artcom%2Fasset-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artcom%2Fasset-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artcom%2Fasset-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/artcom","download_url":"https://codeload.github.com/artcom/asset-generator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239449649,"owners_count":19640555,"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":[],"created_at":"2024-11-07T06:27:14.471Z","updated_at":"2025-11-05T07:30:28.158Z","avatar_url":"https://github.com/artcom.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Asset Generator\n\nThis is a command-line tool for generating custom assets. The tool uses the [ffmpeg](https://www.ffmpeg.org/) and [ImageMagick](https://imagemagick.org/index.php) libraries to generate MP4 and WebM video files with text overlays.\n\n## Requirements\n\nYou need to have [Node.js](https://nodejs.org/en/) installed on your computer. You can check if you have Node.js installed by running the command `node -v` in your terminal. If you don't have Node.js installed, you can download it from the [Node.js website](https://nodejs.org/en/).\n\nYou need to have magick and ffmpeg installed on your computer. You can check if you have them installed by running the command `magick -version` and `ffmpeg -version` in your terminal. If you don't have them installed, you can download them from the [ImageMagick website](https://imagemagick.org/index.php) and the [ffmpeg website](https://www.ffmpeg.org/). You can also install them using [Homebrew](https://brew.sh/) on macOS.\n\n## Installation\n\nClone this repository: `git clone https://github.com/artcom/asset-generator`\nInstall the dependencies: `npm install`\n\n## Usage\n\nTo use the tool, you need to create a JSON file that describes your asset collections and options. Here's an example:\n\n```\njson\nCopy code\n{\n  \"assetCollections\": [\n    {\n      \"folder\": \"collection-1\",\n      \"pngs\": [\n        { \"name\": \"image-1\", \"size\": \"large\", \"transparent\": true },\n        { \"name\": \"image-2\", \"size\": \"medium\" },\n        { \"name\": \"image-3\", \"size\": \"small\", \"transparent\": true }\n      ],\n      \"mp4s\": [\n        { \"name\": \"video-1\", \"size\": \"large\" },\n        { \"name\": \"video-2\", \"size\": \"medium\" }\n      ]\n    },\n    {\n      \"folder\": \"collection-2\",\n      \"pngs\": [\n        { \"name\": \"image-4\", \"size\": \"small\" },\n        { \"name\": \"image-5\", \"size\": \"medium\" }\n      ],\n      \"mp4s\": [\n        { \"name\": \"video-3\", \"size\": \"large\" }\n      ]\n    }\n  ],\n  \"sizes\": {\n    \"small\": { \"width\": 320, \"height\": 240 },\n    \"medium\": { \"width\": 640, \"height\": 480 },\n    \"large\": { \"width\": 1280, \"height\": 720 }\n  },\n  \"options\": {\n    \"parentFolder\": \"assets\",\n    \"globalPrefix\": \"My Company\\n\"\n  }\n}\n```\n\nSave this file as config.json.\n\nTo generate the assets, run the command `node generateAssets.js ./config.json.` This will generate a set of PNG and video files in the assets directory. Otherwise you can run `npm start` to generate the assets.\n\n## Customization\n\nYou can customize the tool by editing the generateAssets.js file. Here are some things you can do:\n\nChange the font size and color of the text overlay in the generatePng and generateTransparentPng functions.\nChange the duration and transition of the video fade effect in the generateMp4 function.\nAdd support for other video formats (e.g. AVI, MOV) by modifying the generateMp4 and generateWebM functions.\nChange the output directory by modifying the ASSET_PATH variable.\n\n## License\n\nThis project is licensed under the MIT License. See the LICENSE file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fartcom%2Fasset-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fartcom%2Fasset-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fartcom%2Fasset-generator/lists"}