{"id":27000508,"url":"https://github.com/darrylschaefer/nodeoutpainting","last_synced_at":"2026-05-19T14:34:49.369Z","repository":{"id":233322871,"uuid":"786985947","full_name":"darrylschaefer/NodeOutpainting","owner":"darrylschaefer","description":"Outpaints an image using Node","archived":false,"fork":false,"pushed_at":"2024-04-15T17:18:02.000Z","size":14122,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-27T21:01:08.787Z","etag":null,"topics":["ai","image","image-generation","image-manipulation","openai","outpainting"],"latest_commit_sha":null,"homepage":"","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/darrylschaefer.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}},"created_at":"2024-04-15T17:11:01.000Z","updated_at":"2024-04-15T17:19:25.000Z","dependencies_parsed_at":"2024-04-15T19:49:07.784Z","dependency_job_id":null,"html_url":"https://github.com/darrylschaefer/NodeOutpainting","commit_stats":null,"previous_names":["darrylschaefer/nodeoutpainting"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/darrylschaefer/NodeOutpainting","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darrylschaefer%2FNodeOutpainting","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darrylschaefer%2FNodeOutpainting/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darrylschaefer%2FNodeOutpainting/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darrylschaefer%2FNodeOutpainting/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/darrylschaefer","download_url":"https://codeload.github.com/darrylschaefer/NodeOutpainting/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darrylschaefer%2FNodeOutpainting/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274719115,"owners_count":25337237,"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","status":"online","status_checked_at":"2025-09-11T02:00:13.660Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["ai","image","image-generation","image-manipulation","openai","outpainting"],"created_at":"2025-04-04T03:27:14.018Z","updated_at":"2026-05-19T14:34:49.340Z","avatar_url":"https://github.com/darrylschaefer.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NodeOutpaint\n\n## Overview\n\nThis script takes an input image, divides it into four squares, uses the Dall-E 2 OpenAI API point to extend these images and reassembles them into a larger (2048px x 2048px) image.\n\nYou can use it to outpaint or extend (Dall-E 2, Dall-E 3) generations as long as the input generation is 1024px by 1024px.\n\nBefore:\n\n![github1](https://github.com/darrylschaefer/NodeOutpainting/assets/119073511/8b251194-e271-40f7-808f-3ac590c87e1e)\n\nAfter:\n\n![github2](https://github.com/darrylschaefer/NodeOutpainting/assets/119073511/15fc4d6a-8e1f-4620-b9bc-8f4713bda1bf)\n\n## Installation\n\nTo set up the project on your local machine, follow these steps:\n\n1. Ensure that Node.js is installed on your system. You can download and install it from [Node.js official website](https://nodejs.org/).\n\n2. Clone the repository to your local machine or download the source code.\n\n3. Navigate to the project directory and install dependencies:\n\n   ```bash\n   npm install\n   ```\n\n4. Modify processImage.js and reprocessCorner.js scripts with your OpenAI API key (line 7).\n\n## Usage\n\nTo run the application, you need to provide an image file. Place your input image in the root of the project directory. Use the following command to start the image processing:\n\n```bash\nnode processImage.js image_filename.jpg \"Your image prompt goes in this string\"\n```\n\nReplace `'image_filename.jpg'` with the path to your input image. There's an example.jpg included - so feel free to use that one to test it out!\n\nDall-E 2 Edits Endpoint can be inconsistent when given 1/4 of an image to extend. This will likely require you to request remakes of specific corners until you find something visually consistent. There's a secondary script for generating a new corner and rebuilding the master image.\n\n### Fixing a Corner\n\nYou can fix a corner by running the following command:\n\n```bash\nnode reprocessCorner.js corner \"Your image prompt goes in this string\"\n```\n\nReplace \"corner\" with the corner to be replaced (bottomLeft, bottomRight, topLeft, topRight). Add your prompt to be used to extend the image!\n\n## Tips\n\nHigher detail source images (from Dall-E 3) seem to work better for consistent outpainting. Lower detailed, abstract images cause a lot of hallucinations (artifacts, spontaneous faces, random text) to appear in the edits.\n\nIncreasing the amount of source image that is fed into the Edits API will probably increase the consistency and quality of the outputs however this script is currently not modified to do that.\n\n## Inspiration\n\nThis project was inspired by dalle2_outpaint by mdbecker! https://github.com/mdbecker/dalle2_outpaint\n\n## Support\n\nFor any issues or questions regarding the application, please open an issue in the project repository on GitHub.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarrylschaefer%2Fnodeoutpainting","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdarrylschaefer%2Fnodeoutpainting","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarrylschaefer%2Fnodeoutpainting/lists"}