obsidian-wordpress icon indicating copy to clipboard operation
obsidian-wordpress copied to clipboard

How to post images

Open MAWSpitau opened this issue 2 years ago • 14 comments

Hi there,

the plugin worked pretty well, but I am not able to post images. Is it a bug or a feature

Using REST API by applikation

Greetings Marcel

MAWSpitau avatar Mar 18 '23 19:03 MAWSpitau

Did you mean images in notes using such syntax like

![The San Juan Mountains are beautiful!](/assets/images/san-juan-mountains.jpg "San Juan Mountains")

?

Thus do you mean it should be replaced to some abstract links?

devbean avatar Apr 04 '23 07:04 devbean

可以使用图床: 5.1.230204 为obsidian创建图床的过程:Picgo+腾讯云COS+插件 - 酷口家读书会

是的,不过这样就远超过一个 WordPress 相关插件的职能了,这样的功能完全可以作为一个独立的插件,而且是一个相当大的插件。所以,最好能简化一些。

devbean avatar Apr 06 '23 08:04 devbean

这个功能已经有其他插件实现,不需要去实现,wordpress专注于自己发布功能上即可,图片的发布,应该用其他方案

weqoocu avatar Apr 06 '23 11:04 weqoocu

Did you mean images in notes using such syntax like

![The San Juan Mountains are beautiful!](/assets/images/san-juan-mountains.jpg "San Juan Mountains")

?

Thus do you mean it should be replaced to some abstract links?

My image-Link looks like that in obsidian:

![[IMG_20230408_211806.jpg]]

Obsidian shows it pretty well, bu in wordpress, I online get that code and no image is uploaded.

Greets MAW

MAWSpitau avatar Apr 15 '23 08:04 MAWSpitau

Damn. Pressed the wrong button. This is not closed, yet.

MAWSpitau avatar Apr 15 '23 08:04 MAWSpitau

Did you mean images in notes using such syntax like

![The San Juan Mountains are beautiful!](/assets/images/san-juan-mountains.jpg "San Juan Mountains")

? Thus do you mean it should be replaced to some abstract links?

My image-Link looks like that in obsidian:

![[IMG_20230408_211806.jpg]]

Obsidian shows it pretty well, bu in wordpress, I online get that code and no image is uploaded.

Greets MAW

Do images upload using the ![image here](imagehere.jpg) syntax?

DudeThatsErin avatar May 19 '23 21:05 DudeThatsErin

Do images upload using the ![image here](imagehere.jpg) syntax?

Hi!

I tried. It creates the link in post correctly, but it doesn't upload the image.

Anyway, thanks for the great plugin!

lumenpink avatar Aug 06 '23 02:08 lumenpink

Now the plugin could recognize ![[img]] syntax, upload the local file to wordpress. Also there is a setting option for whether using the URL wordpress returned to replace orignal image path or not.

devbean avatar Oct 11 '23 06:10 devbean

Just an idea: Maybe add a parameter to set a featured image...?

owrede avatar Oct 13 '23 01:10 owrede

Just an idea: Maybe add a parameter to set a featured image...?

That's a great idea but how to set which image should be featured? Should we add a sepecial flag in markdown source? Or just set in publish modal?

devbean avatar Oct 13 '23 02:10 devbean

Now the plugin could recognize ![[img]] syntax, upload the local file to wordpress. Also there is a setting option for whether using the URL wordpress returned to replace orignal image path or not.

为什么支持的是 ![[img]] 这种语法?要是这种语法 obsidian 里怎么展示图片?markdown 的图片语法不是下面这种吗?

![](images/xxxx.png)

ghostcode avatar Dec 14 '23 03:12 ghostcode

Now the plugin could recognize ![[img]] syntax, upload the local file to wordpress. Also there is a setting option for whether using the URL wordpress returned to replace orignal image path or not.

为什么支持的是 ![[img]] 这种语法?要是这种语法 obsidian 里怎么展示图片?markdown 的图片语法不是下面这种吗?

![](images/xxxx.png)

我是参考的 Obsidian 的语法文档:https://help.obsidian.md/Linking+notes+and+files/Embedding+files#Embed+an+image+in+a+note,好像没有考虑 markdown 的语法。

devbean avatar Dec 14 '23 06:12 devbean

Now the plugin could recognize ![[img]] syntax, upload the local file to wordpress. Also there is a setting option for whether using the URL wordpress returned to replace orignal image path or not.

为什么支持的是 ![[img]] 这种语法?要是这种语法 obsidian 里怎么展示图片?markdown 的图片语法不是下面这种吗?

![](images/xxxx.png)

我是参考的 Obsidian 的语法文档:https://help.obsidian.md/Linking+notes+and+files/Embedding+files#Embed+an+image+in+a+note,好像没有考虑 markdown 的语法。

后面是不是考虑兼容下,Obsidian 的设置里:

image

我的默认是关闭,所以插入图片就用了 markdown 模式。但是我打开设置,重新写了一篇文章,发表后还是没有图片:

image

我使用的版本:

image

请问还需要设置什么吗?

ghostcode avatar Dec 15 '23 01:12 ghostcode