-
-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem displaying images #106
Comments
There are two problems:
There's an error in resolving relative paths containing colons (as you probably guessed). I will fix it soon. |
@amake Thank you for your work 🙏. |
What platform are you running Orgro on, and where are you storing your files? |
Android 11+ appears to be incapable of handling colons in file paths: |
Sorry, the bugs I found and fixed are related, but probably won't fix your issue if you're on Android. Android apparently forbids |
I also can't reproduce the poor layout issue. When an image doesn't resolve, the current version of Orgro shows an error message, not a gray square. What version of Orgro are you using? |
Uri.resolve first parses its argument as a URI, so if relativePath is e.g. `foo: bar` then it will be mistaken for a URI with scheme `foo`. See #106
I am on Android 13 🥲 .
I am on Orgro 1.40.4 .
I am using Termux, and doing a |
Thanks for the details. I tried to recreate your setup on my Android 11 device, and I found the following: When cloning a repository (actually this one) containing the directory $ termux-setup-storage
$ cd storage/shared
$ git clone https://github.com/amake/orgro.git
$ ls orgro/assets/test/foo:\ bar/
# no files listed (directory is empty) Can you see if the files you expect actually exist? Also, I note that everything works if your git clone is inside the Termux filesystem: $ cd # move to home
$ git clone https://github.com/amake/orgro.git
$ ls orgro/assets/test/foo:\ bar/
links-unusual-path.org unicorn-1.svg Because Termux implements the Storage Access Framework, Orgro is able to open files directly from within Termux's filesystem. If that works for your use case, I would recommend doing that instead. |
The image layout improvements are released on all platforms. There is nothing I can do to make paths with |
I normally do just that.
Thanks for deep diving into this issue. 🫡
Alright, I will just be careful with my headings. |
You said you put your checkout under $HOME/storage/shared/. I'm saying it should work if you keep it under $HOME. Colons in paths should work there. |
When relative link to my image file is
[[file:Achieving_ACID:_Serial_Execution/2024-07-17_16-43-26_screenshot.png]]
then Orgro displays a super long grey box.In Emacs:
![image](https://private-user-images.githubusercontent.com/16041729/372384948-1b14b9b6-97dd-43e6-8996-1449163e2404.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwNjQ1NDksIm5iZiI6MTczOTA2NDI0OSwicGF0aCI6Ii8xNjA0MTcyOS8zNzIzODQ5NDgtMWIxNGI5YjYtOTdkZC00M2U2LTg5OTYtMTQ0OTE2M2UyNDA0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA5VDAxMjQwOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTJjY2YyYzBkYTEwMGJlN2IzNmIwZDE3NTNkNWU5ZWNkZTdhMTRmODFjZjM1NDA2NDkwZTk0MDc5NDI2MTA3ZDUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.qmeK0YaUAqwc6qrT2BCkOD2fJ924-FxbZzLQ2YetcWE)
![Screenshot_20241001_140150_Orgro](https://private-user-images.githubusercontent.com/16041729/372387402-58fc083d-020c-455f-9917-0d8cd265e46d.jpg?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwNjQ1NDksIm5iZiI6MTczOTA2NDI0OSwicGF0aCI6Ii8xNjA0MTcyOS8zNzIzODc0MDItNThmYzA4M2QtMDIwYy00NTVmLTk5MTctMGQ4Y2QyNjVlNDZkLmpwZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA5VDAxMjQwOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTRjN2MyYzI2MGQzMmM0MWQzODNjOTYxYWIwMzRmNGFkOTQyOTNkZjY3NGNjMjNkZmY4ZDFlNzM1NGVlNWI1YWYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.H9rELBDudQsKPo1H5jMD-nhk4QFOvXBQ9murynhx9p4)
In Orgro:
But, when I copy that image file and move it into a folder named
Achieving_ACID_-_Serial_Execution
(earlier it was
Achieving_ACID:_Serial_Execution
), i.e. in the new folder name has a_-
instead of a:
,then it displays fine in Orgro.
In Emacs (after):
![image](https://private-user-images.githubusercontent.com/16041729/372387850-5582ac00-e985-46ae-b4f4-7b36009b58c8.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwNjQ1NDksIm5iZiI6MTczOTA2NDI0OSwicGF0aCI6Ii8xNjA0MTcyOS8zNzIzODc4NTAtNTU4MmFjMDAtZTk4NS00NmFlLWI0ZjQtN2IzNjAwOWI1OGM4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA5VDAxMjQwOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTU2MzJkYmY2YmQyMzRmN2MyNzRkYzE4M2NiYTEzZDAzZGFlOGFlYmY1NDExNjJlNjY3NGE2MmM1MWQ4NDNhNDcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.0NgJfi6fVpCJs2piGFiu35-6iGLnG_C847D2gGLr4Gc)
![Screenshot_20241001_140958_Orgro](https://private-user-images.githubusercontent.com/16041729/372388417-3453d1ea-4885-4439-9483-728ead4f4c8e.jpg?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwNjQ1NDksIm5iZiI6MTczOTA2NDI0OSwicGF0aCI6Ii8xNjA0MTcyOS8zNzIzODg0MTctMzQ1M2QxZWEtNDg4NS00NDM5LTk0ODMtNzI4ZWFkNGY0YzhlLmpwZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA5VDAxMjQwOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTYzYzA0NDkwYTAxZWU4YjllMjVkYTYwN2Y0MGYzNDkzZTg2MDhiOTc4MTk1NGNiYjhlODI5ODUwNzA2ODAyNmQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.Aimh3d9h67oxU7yRvXZ8MaxNJ4gLQueEnUxyUcEHrkk)
In Orgro (after):
The text was updated successfully, but these errors were encountered: