Image Hosting Extension for VS Code
Upload images to image-hosting.hemantabhattarai.com.np and get shareable URLs directly from VS Code!
Features
- 📤 Upload from File Explorer: Right-click any image file and select "Upload Image to Hosting"
- 📋 Upload from Clipboard: Copy an image and upload it via command palette
- 🔗 Auto Copy URL: Uploaded image URL is automatically copied to clipboard
- ⚡ Fast & Simple: Direct integration with image hosting API
- 🎯 Multiple Formats: Supports PNG, JPG, JPEG, GIF, BMP, WEBP
Installation
From VSIX File (Local Installation)
- Download the
.vsix file
- Open VS Code
- Press
Ctrl+Shift+P (or Cmd+Shift+P on Mac)
- Type "Install from VSIX" and select it
- Browse to the
.vsix file and install
From VS Code Marketplace
Search for "Image Hosting" in the Extensions view (Ctrl+Shift+X) and click Install.
Usage
Method 1: Upload from File Explorer
- Right-click any image file in the VS Code file explorer
- Select "Upload Image to Hosting"
- Wait for the upload to complete
- The image URL will be automatically copied to your clipboard
- Click "Open URL" to view the image in your browser
Method 2: Upload via Command Palette
- Open Command Palette (
Ctrl+Shift+P or Cmd+Shift+P)
- Type "Upload Image to Hosting"
- Select an image file from the file picker
- The URL will be copied to your clipboard
Method 3: Upload from Clipboard
- Copy an image to your clipboard
- Open Command Palette (
Ctrl+Shift+P or Cmd+Shift+P)
- Type "Upload Image from Clipboard"
- The URL will be copied to your clipboard
This extension uses the image hosting API at image-hosting.hemantabhattarai.com.np.
- Endpoint:
POST https://image-hosting.hemantabhattarai.com.np/upload
- Format: Raw Base64 string
- Response: Plain text image ID
- Access URL:
https://image-hosting.hemantabhattarai.com.np/{IMAGE_ID}
Requirements
- VS Code version 1.75.0 or higher
- Internet connection for uploading images
Extension Settings
This extension does not add any VS Code settings.
Known Issues
- Clipboard image upload may not work on all platforms due to VS Code API limitations
- Large images may take longer to upload
Release Notes
1.0.0
Initial release:
- Upload images from file explorer
- Upload via command palette
- Clipboard upload support
- Automatic URL copying
- Progress notifications
Support
For issues or feature requests, please visit the GitHub repository.
License
MIT License - See LICENSE file for details
Enjoy uploading images! 🚀
| |