Keep your vault lightweight while storing images securely in the cloud
A powerful Obsidian plugin that automatically uploads your images to GitHub Gists using base64 encoding, keeping your vault size minimal while ensuring your images are always accessible - even in PDF exports!
- 🖼️ Automatic Image Upload - Drag & drop or paste images directly into your notes
- 🔒 Private Storage - Images stored securely in GitHub Secret Gists
- 📄 PDF Export Compatible - Works perfectly with Obsidian's PDF export feature
- ⚡ Lightweight Vault - Only image URLs stored locally, not the actual files
- 🚀 Fast Loading - Images served through Cloudflare Workers CDN
- 🔄 Fallback Support - Automatically saves locally if upload fails
- ⚙️ Highly Configurable - Control paste/drop behavior, progress notifications, and more
- Open Obsidian Settings
- Go to Community Plugins
- Search for "Pimg"
- Click Install and Enable
- Click the "Deploy to Cloudflare Workers" button above
- Authenticate your accounts:
- Log in with your Cloudflare account if prompted
- Connect your GitHub account when requested
- Configure deployment settings:
- Follow the on-screen instructions to customize your deployment
- The system will automatically fork the repository to your GitHub account
- Complete deployment:
- Click "Deploy" to build and deploy your worker
- Wait for the deployment to complete (usually takes 1-2 minutes)
- Copy your worker URL:
- After successful deployment, you'll see your worker URL in the format:
https://pimg.<your-subdomain>.workers.dev - Save this URL - you'll need it for the Obsidian plugin configuration
- After successful deployment, you'll see your worker URL in the format:
💡 Tip: The deploy button automatically handles repository forking, dependency installation, building, and deployment. No local setup required!
-
Clone the worker repository:
git clone https://github.com/MdSadiqMd/Pimg-Obsidian-Worker.git cd Pimg-Obsidian-Worker -
Install dependencies:
npm install
-
Authenticate with Cloudflare:
npx wrangler login
-
Deploy to Cloudflare Workers:
npm run deploy
or
npx wrangler deploy
-
Copy your worker URL
After deployment, you'll find your public worker URL in the terminal output (e.g.,https://pimg.<your-subdomain>.workers.dev). Use this in your Obsidian settings.
- Go to GitHub Settings → Developer Settings → Personal Access Tokens
- Click "Generate new token (classic)"
- Give it a descriptive name (e.g., "Pimg Obsidian Plugin")
- Select the
gistscope (Full control of gists) - Copy the generated token immediately
- Open Obsidian Settings → Community Plugins → Pimg
- Enter your GitHub Access Token
- Enter your GitHub Username
- Enter your Cloudflare Worker URL
- Configure behavior settings as desired
- Paste: Copy an image and paste it into your note with
Ctrl/Cmd+V - Drag & Drop: Drag image files directly into your editor
- Automatic: The plugin handles upload and URL generation automatically
This project is licensed under the BSD License - see the LICENSE file for more details
Made with ❤️ by @MdSadiqMd