-
Notifications
You must be signed in to change notification settings - Fork 127
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
"unable to open image file" error on Ubuntu 20.04 #54
Comments
How odd. What version of ImageMagick are you running? convert --version Are you able to view the images using convert test.png -geometry 800x500 sixel:- If so, does it only break when using the file: URI? convert file://contents.png -geometry 800x500 sixel:- If that fails, please try it with the full work directory: convert file://`pwd`/contents.png -geometry 800x500 sixel:- Thank you for the bug report. |
@hackerb9 Thank you for responding.
No news is good news in Linux, so the following command works:
It looks like a path issue:
Feeding the full path also doesn't work:
|
I think it stems from the policy files in |
I'm glad ImageMagick works from source, but it's very weird that it doesn't work out of the box. I'd like to track that down. I've examined Ubuntu's ImageMagick configuration files and it doesn't look like it has anything odd in the policy file. It hasn't even been updated since June of 2021. If the problem was with the policy file, I think ImageMagick would not say "No such file or directory". Policy errors usually look like this:
Would you please humor me and try reinstalling Ubuntu's version then send me the output from these two commands? This first one should work fine since it doesn't use convert -debug all test.png -geometry 800x500 sixel:- This second one should fail: convert -debug all file://test.png -geometry 800x500 sixel:- Thanks! |
I post debug output of failing one:
|
FYI |
Same for me, /usr/bin/convert file://foo.jpg -geometry 800x500 sixel:- is not working, without the "file://" protocol So, if I remove the "file://" prefix in lsix, i.e. so line 243 reads like |
Thank you. It is not a security issue. If I recall correctly, it was a workaround for the way ImageMagick treats files that have a colon in them. I can turn that into an "if/then", but am reluctant to complicate the code if the problem is actually in Ubuntu. Just to double check: you are using Ubuntu 20? What version of ImageMagick is installed? |
Oh, sorry, I seem to have hijacked this thread. No, not Ubuntu. I read this thread and figured it matched In my policy.xml, there is |
Thank you for making this project.
I am on Ubuntu 20.04 platform. When I run
./lsix
insixel
supported terminal, I get the following errors:The text was updated successfully, but these errors were encountered: