Skip to content

maoxiaoke/image-resizer

Repository files navigation

Overview

This plugin allow you resize your notes of Obsidian.

Support the development of my plugins and themes @xiaokedada on Twitter or Buy me a coffee.

Install

Because this plugin has not yet been released to the community, you can clone this repo to the plugins directory in your vault's .obsidian directory so that Obsidian can find it.

  1. Open a terminal window and change this project directory to the plugins directory.
cd path/to/valut
cd .obsidian/plugins
  1. Clone this repo using Git.
git clone git@github.com:maoxiaoke/image-resizer.git
  1. Restart the Obsidian.

Usage

In simple terms, this plugin search the keyword of alt in Obsidian Wikilinks and MarkDown Links.

![[wallhaven-p9o51m.png | fit rounded]]

![fit rounded](wallhaven-p9o51m.png)

Those keywords are:

width

  • full, 100% width of the page width
  • wide, 88% width of the page width
  • fit, 80% width of the line width
  • half, 50% width of the line width
  • 1/2, the same as half
  • 2/3
  • 3/5
  • 4/5
  • 5/6

This plugin of support arbitrary width values follow by w-, such as w-300. This feature can be turned on in the plugin's settings.

Position

  • center, the default
  • left
  • right

Styles

  • rounded
  • rounded-full