orgzly / orgzly-android

Outliner for taking notes and managing to-do lists
https://www.orgzly.com
GNU General Public License v3.0
2.7k stars 304 forks source link

inline images on SD card no longer displayed #1012

Open pbienst opened 2 years ago

pbienst commented 2 years ago

My org files contain links to images like

[[/storage/9C33-6BBD/org_media/collector_logs/archiver 20221125 04.30.02/https%3A%2F%2Fi1.ytimg.com%2Fvi%2FLEgHRAQ1HmE%2Fhqdefault.jpg]]

These used to display inline in the past, but not anymore. I need to click on them and then open them in an external image viewer.

"Enable images" is set to true in the settings.

I tried moving the images to different locations, e.g. in the same location as the org file, but that did not help.

I also tried with different settings for relative and absolute root, but without success.

This is with 1.8.10.

What is the proper way to have images displayed inline?

anoduck commented 2 years ago

My org files contain links to images like

[[/storage/9C33-6BBD/org_media/collector_logs/archiver 20221125 04.30.02/https%3A%2F%2Fi1.ytimg.com%2Fvi%2FLEgHRAQ1HmE%2Fhqdefault.jpg]]

First, and this is just me here, I would try to cleanup your path naming scheme. Remove spaces in the path that would require being escaped. For example, [[/use/something_like/this]] instead of [[/a path/something/like this/here yeah]]. Because in order to locate the path when spaces are used, they have to be escaped. To clarify, [[/this path/would not/work]] but [[/this\ path/would\ work/nicely\ yeah]] .

Next, I would do the same for the actual image name as well. https%3A%2F2Fi1.ytimg.com%2Fvi%2FLEgHRAQ1HmE%2Fhqdefault.jpg possesses characters that could be interpreted as regular expressions. So, change the name of the image to something simple, like hqdefault.jpg or 11-25-22_hqdefault.jpg.

What is the proper way to have images displayed inline?

Have you tried moving the images into a separate folder inside the same directory as your org files?

pbienst commented 2 years ago

Thanks, but none of this made any difference...

anoduck commented 2 years ago

Well, shit... :(

I will attach some images to one my orgfiles in orgzly and see if it works for me or not. Which will require me to add said feature to my script org-orgzly.

anoduck commented 2 years ago

@pbienst A yes... I confirm, inline imaging does not appear to be functional at this moment. Does not work on my device either, and I did a few different ways to attach an image inside org. The error is reproducible.