Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

Resizer

Jan SandströmJan Sandström415 downloads

Resize embedded images and PDFs by dragging corners. Automatically updates markdown with correct dimensions.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates3

Scale and resize embedded images and PDFs in Obsidian by dragging corners. The plugin automatically updates the markdown with the correct dimensions.

Features

  • Drag to Resize: Click on any embedded image or PDF and drag the corner handles to resize
  • Proportional Scaling: Maintains aspect ratio while resizing (can be disabled in settings)
  • Auto-update Markdown: Automatically updates your markdown with the correct dimensions
  • PDF Support: Resize embedded PDFs with CSS transform scaling
  • Persistent Scaling: PDF scales stored in markdown as HTML comments for cross-device sync
  • Customizable: Adjust handle size, color, and minimum dimensions in settings
  • Live Dimensions: See the dimensions while resizing (optional)
  • Reset Command: Command to reset image to original size

Usage

Resizing Images

  1. Click on any embedded image in Live Preview mode
  2. Resize handles will appear at the four corners
  3. Drag any corner handle to resize the image
  4. Release to apply - the markdown will be automatically updated

Resizing PDFs

  1. Click on any embedded PDF in Live Preview mode
  2. Resize handles will appear at the four corners
  3. Drag any corner handle to scale the PDF
  4. Release to apply - the scale is saved as an HTML comment in markdown

Markdown Format

Images are updated with Obsidian's native syntax:

![[image.png|width]]
![alt text](https://raw.githubusercontent.com/pixerojan/obsidian-resizer/HEAD/image.png|width)

PDFs are scaled using HTML comments:

![[document.pdf]]<!-- pdf-scale:0.75 -->

The HTML comment stores the scale factor (e.g., 0.75 = 75% of original size) and syncs across devices.

Commands

  • Reset size to original: Removes size specifications from the image at cursor

Settings

  • Maintain aspect ratio: Keep image/PDF proportions when resizing
  • Show dimensions while resizing: Display dimensions during resize
  • Minimum width/height: Set minimum constraints for resizing
  • Handle size: Customize resize handle size (default: 12px)
  • Handle color: Customize resize handle color (default: #4a9eff)

Installation

From Obsidian

  1. Open Settings → Community Plugins
  2. Disable Safe Mode
  3. Click Browse and search for "Resizer"
  4. Install and enable the plugin

Manual Installation

  1. Download the latest release
  2. Extract to your vault's .obsidian/plugins/resizer/ directory
  3. Reload Obsidian
  4. Enable the plugin in Settings → Community Plugins

How It Works

Images

  • Detects clicks on embedded images in Live Preview mode
  • Creates a fixed-position overlay with corner handles
  • Updates image dimensions using Obsidian's native |width syntax
  • Changes persist in the markdown file

PDFs

  • Detects clicks on PDF viewer elements (text layer, toolbar, canvas)
  • Applies CSS transform: scale() to the PDF container
  • Stores scale factor as HTML comment: <!-- pdf-scale:0.75 -->
  • Scale is restored when reopening the note (cross-device compatible)

Development

# Install dependencies
npm install

# Run in development mode (auto-rebuild on changes)
npm run dev

# Build for production
npm run build

Technical Details

  • Build: ESBuild + TypeScript
  • Editor Mode: Live Preview (CodeMirror 6)
  • Event Handling: Capture phase click listeners to intercept before Obsidian
  • Positioning: Fixed positioning overlay on document.body to avoid layout conflicts
  • PDF Scaling: CSS transform instead of markdown syntax (which doesn't work for PDFs)
  • Persistence: Images use |width, PDFs use HTML comments

Known Limitations

  • Only works in Live Preview mode (not Reading mode)
  • PDF scaling uses CSS transform, so original PDF size determines scroll area
  • Minimum dimensions apply to prevent accidental over-shrinking

License

MIT

Limitations

  • The crop function is experimental as Markdown doesn't natively support image cropping
  • Works best in reading mode; live preview support is limited

Support

If you encounter any issues or have feature requests, please file them on the GitHub repository.

License

MIT License

94%
HealthExcellent
ReviewPassed
About
Drag corner handles to resize and scale embedded images and PDFs in Live Preview. Automatically update markdown with exact dimensions and store PDF scale as HTML comments for persistent, cross-device sync.
ImagesPDFMarkdown
Details
Current version
1.0.2
Last updated
Last week
Created
8 months ago
Updates
3 releases
Downloads
415
Compatible with
Obsidian 1.4.0+
Platforms
Desktop, Mobile
License
MIT
Report bugRequest featureReport plugin
Sponsor
Support
PayPal
Author
Jan SandströmJan Sandströmpixerojan
GitHubpixerojan
  1. Community
  2. Plugins
  3. Images
  4. Resizer

Related plugins

Image in Editor

View Images, Transclusions, iFrames and PDF Files within the Editor without a necessity to switch to Preview.

Image Captions

Add captions to images with inline Markdown and link support. The caption format is compatible with the Commonmark spec and other Markdown applications.

JotBird

Publish notes as shareable web pages with one click. No account required.

Importer

Import data from Notion, Evernote, Apple Notes, Microsoft OneNote, Google Keep, Bear, Roam, and HTML files.

Outliner

Work with your lists like in Workflowy or Roam Research.

Various Complements

Complete words similar to auto-completion in an IDE.

Linter

Format and style your notes. Linter can be used to format YAML tags, aliases, arrays, and metadata; footnotes; headings; spacing; math blocks; regular Markdown contents like list, italics, and bold styles; and more with the use of custom rule options.

Image Converter

Convert, compress, resize, annotate, markup, draw, crop, rotate, flip, align, drag-resize, rename with variables, and batch process images: WEBP, JPG, PNG, HEIC, TIF

Text Extractor

A (companion) plugin to facilitate the extraction of text from images (OCR) and PDFs.

Image Context Menus

Image context menus (mostly on right click): Copy to clipboard, Open in default app, Show in system explorer, Reveal file in navigation, Open in new tab.