liominsb33 downloadsLightweight image zoom and drag viewing plugin, supports wheel zoom and mouse drag panning.
A lightweight Obsidian plugin for image zoom and pan. Designed as a drop-in replacement for the unmaintained Image Toolkit.
Esc or click the dark backdrop to close instantly.requestAnimationFrame for buttery-smooth interactions.Download the plugin files
Prepare the following three files:
manifest.jsonmain.js (needs to be built)styles.cssLocate the Obsidian plugins folder
<your vault>/.obsidian/plugins/Create the plugin folder
Inside the plugins directory, create a new folder named image-zoom.
Copy the files
Copy manifest.json, main.js, and styles.css into the image-zoom folder.
Enable the plugin
Clone or download this repository
git clone <repository-url>
cd image-zoom-pan
Install dependencies
npm install
Build the plugin
npm run build
Copy to your Obsidian vault
Copy the built files to your vault’s plugins folder:
<your vault>/.obsidian/plugins/image-zoom-pan/
Enable the plugin
Enable the plugin in Obsidian’s settings.
# Install dependencies
npm install
# Development mode (auto-rebuild)
npm run dev
# Production build
npm run build
image-zoom/
├── manifest.json # Plugin metadata
├── main.ts # Core logic
├── styles.css # Stylesheet
├── package.json # Dependencies & scripts
├── tsconfig.json # TypeScript configuration
├── esbuild.config.mjs # Build configuration
└── README.md # This file
Esc key.requestAnimationFrame.my-custom-zoom- to prevent leaks.If something isn’t working, please verify:
MIT License
Inspired by Image Toolkit. This plugin offers a modern, maintainable alternative with a focus on simplicity and performance.