Vnote: RFE: image size (link_attributes)

Created on 3 May 2018  ·  5Comments  ·  Source: vnotex/vnote

VNote 1.14 | Arch Linux

What syntax should I use to control size of the inserted images? (Not related to "preview size" #120)
Are you going to implement the so called "link_attributes":

![](file.jpg){ width=50% }

Most helpful comment

Hi,

I will find whether there is such a plugin for markdown-it to specify image size. If found, I will add it.

BTW, please update VNote to 1.15 and you won't be disappointed! :)

Thanks!

All 5 comments

Hi,

I will find whether there is such a plugin for markdown-it to specify image size. If found, I will add it.

BTW, please update VNote to 1.15 and you won't be disappointed! :)

Thanks!

Hi,

Already added (dba154b2c38a923290592a7c686fceb52a9d46fc). Only supported in markdown-it.

Syntax:

![Image Alt Text](/url/to/image.png "Optional Text")

![Image Alt Text](/url/to/image.png "Image specified with width and height" =800x600)

![Image Alt Text](/url/to/image.png =800x600)

![Image Alt Text](/url/to/image.png "Image specified with width" =800x)

![Image Alt Text](/url/to/image.png "Image specified with height" =x600)

Thanks!

Great, thank you! Do I understand correct syntax like =800x600 defines an outbox? It seems the second number does not affect the image...

For example, this is a square picture:

![]( https://raw.githubusercontent.com/tamlok/vnote/master/screenshots/vnote.png =100x100)

Setting it's height less does not make it smaller:

![]( https://raw.githubusercontent.com/tamlok/vnote/master/screenshots/vnote.png =100x50)

Setting only height (w/o width) resets it's size to original 256x256:

![]( https://raw.githubusercontent.com/tamlok/vnote/master/screenshots/vnote.png =x50)

VNote v1.15.15.g966d9fb

Indeed it works!!!

P.S. I had to restart the VNote.

Yes, you need to uncheck the constraint option in Markdown menu then reopen opened notes. Please refer to this plugin for details.

Thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

agppp picture agppp  ·  3Comments

client366932 picture client366932  ·  4Comments

ANAT01 picture ANAT01  ·  4Comments

dalerkd picture dalerkd  ·  4Comments

ikelaiah picture ikelaiah  ·  3Comments