{"id":35084609,"url":"https://github.com/ideamans/vscode-image-file-paste","last_synced_at":"2026-04-22T08:31:05.465Z","repository":{"id":303160556,"uuid":"1014299544","full_name":"ideamans/vscode-image-file-paste","owner":"ideamans","description":"VS Code extension to paste images from clipboard directly into image files","archived":false,"fork":false,"pushed_at":"2025-07-06T02:48:52.000Z","size":1465,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-06T03:35:21.676Z","etag":null,"topics":["clipboard","image-processing","typescript","vscode-extension"],"latest_commit_sha":null,"homepage":null,"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/ideamans.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"zenodo":null}},"created_at":"2025-07-05T12:47:52.000Z","updated_at":"2025-07-06T02:48:55.000Z","dependencies_parsed_at":"2025-07-06T03:35:25.428Z","dependency_job_id":"39aa5d60-be1c-4871-b853-63d5d52d4915","html_url":"https://github.com/ideamans/vscode-image-file-paste","commit_stats":null,"previous_names":["ideamans/vscode-image-file-paste"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ideamans/vscode-image-file-paste","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ideamans%2Fvscode-image-file-paste","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ideamans%2Fvscode-image-file-paste/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ideamans%2Fvscode-image-file-paste/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ideamans%2Fvscode-image-file-paste/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ideamans","download_url":"https://codeload.github.com/ideamans/vscode-image-file-paste/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ideamans%2Fvscode-image-file-paste/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32127770,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-22T07:37:52.372Z","status":"ssl_error","status_checked_at":"2026-04-22T07:37:51.635Z","response_time":58,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["clipboard","image-processing","typescript","vscode-extension"],"created_at":"2025-12-27T13:01:34.075Z","updated_at":"2026-04-22T08:31:05.460Z","avatar_url":"https://github.com/ideamans.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# VS Code Image Paste\n\nEnglish | [日本語](README_ja.md)\n\nA Visual Studio Code extension that allows you to paste images from clipboard directly into image files being edited.\n\n![Demo](https://github.com/ideamans/vscode-image-file-paste/raw/main/screencast.gif)\n\n## Features\n\n- 🖼️ **Direct Image Paste**: Paste images copied from other applications directly into open image files\n- 📐 **Paste with Resize**: Specify width to resize while pasting (aspect ratio maintained automatically)\n- 🔄 **Automatic Format Conversion**: Automatically converts image format based on the target file extension\n- ↩️ **Undo Support**: Undo paste operations to restore the original image\n\n## Supported Image Formats\n\n- PNG\n- JPEG / JPG\n- GIF\n- WebP (with some limitations)\n\n## Development Setup\n\n### Prerequisites\n\n- [Node.js](https://nodejs.org/) (v16 or higher)\n- [Visual Studio Code](https://code.visualstudio.com/)\n- npm or yarn\n\n### For First-time VS Code Extension Developers\n\n1. **Clone the repository**\n\n   ```bash\n   git clone https://github.com/ideamans/vscode-image-file-paste.git\n   cd vscode-image-file-paste\n   ```\n\n2. **Install dependencies**\n\n   ```bash\n   npm install\n   ```\n\n3. **Compile TypeScript**\n   ```bash\n   npm run compile\n   ```\n\n## Development Guide\n\n### Running and Debugging the Extension\n\n1. Open this project in VS Code\n2. Press `F5` or run \"Run Extension\" from the Debug view\n3. A new VS Code window will open with the extension loaded\n\n### Debugging Tips\n\n- Set breakpoints: Click to the left of line numbers in TypeScript files\n- Console logs: View in the Debug Console\n- Errors: Check the Problems panel for TypeScript errors\n\n### Project Structure\n\n```\nvscode-image-file-paste/\n├── src/\n│   ├── extension.ts          # Main extension entry point\n│   ├── services/\n│   │   ├── imageFilePasteService.ts  # Image processing service\n│   │   └── imageFileHistory.ts       # History management service\n│   └── test/\n│       └── suite/            # Test files\n├── package.json              # Extension manifest\n├── tsconfig.json            # TypeScript configuration\n└── README.md               # This file\n```\n\n## Building and Installation\n\n### Local Installation\n\n1. **Package the extension**\n\n   ```bash\n   npm install -g vsce\n   vsce package\n   ```\n\n2. **Install the generated .vsix file**\n   - Open VS Code\n   - Open Command Palette (`Ctrl+Shift+P` / `Cmd+Shift+P`)\n   - Select \"Extensions: Install from VSIX...\"\n   - Choose the generated .vsix file\n\n## Usage\n\n### Basic Paste\n\n1. Open an image file (.png, .jpg, etc.) in VS Code\n2. Copy an image from another application\n3. Press `Ctrl+V` (Mac: `Cmd+V`) in VS Code\n\n### Paste with Resize\n\n1. Right-click on an open image file\n2. Select \"Paste Image with Resize\"\n3. Enter the new width when prompted (current width is displayed)\n4. The image will be pasted with automatic aspect ratio maintenance\n\n### Undo\n\nPress `Ctrl+Z` (Mac: `Cmd+Z`) on an image file to undo the last paste operation.\n\n## Running Tests\n\n```bash\nnpm test\n```\n\n## Troubleshooting\n\n### Cannot retrieve image from clipboard\n\n- **macOS**: Should work out of the box\n- **Windows**: Check PowerShell execution policy\n- **Linux**: Ensure `xclip` is installed\n  ```bash\n  sudo apt-get install xclip  # Ubuntu/Debian\n  ```\n\n### Image not saving correctly\n\n- Check file write permissions\n- Ensure sufficient disk space\n\n## Contributing\n\nPull requests are welcome! Please report bugs and feature requests through Issues.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fideamans%2Fvscode-image-file-paste","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fideamans%2Fvscode-image-file-paste","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fideamans%2Fvscode-image-file-paste/lists"}